Method FromColorIndex
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
FromColorIndex(DxfColorMethod, short)
Gets the colour of a method and an index, as AutoCAD's FromColorIndex: ByAci with
1 to 255, ByLayer, ByBlock,
Foreground or None, whose index is theirs whatever is given.
public static DxfColor FromColorIndex(DxfColorMethod colorMethod, short colorIndex)
Parameters
colorMethodDxfColorMethodThe method.
colorIndexshortThe index, 1 to 255 for a colour of the index; 0 and 256 by the index give BYBLOCK and BYLAYER.
Returns
- DxfColor
The colour.
Exceptions
- ArgumentOutOfRangeException
Thrown when the index is outside 0 to 256 for a colour of the index, or the method is one DXF does not write.