Table of Contents

Method StyleForColorIndex

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

StyleForColorIndex(int)

Gets the style of a colour of AutoCAD's index in a colour-dependent table.

public CadPlotStyle StyleForColorIndex(int colorIndex)

Parameters

colorIndex int

The index, 1 to 255.

Returns

CadPlotStyle

The style.

Exceptions

InvalidOperationException

Thrown when the table is a named one.

ArgumentOutOfRangeException

Thrown when the index is not 1 to 255.