Property ColorIndex
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
ColorIndex
Gets or sets the colour of the entity (group 62), as AutoCAD's ColorIndex: 1 to 255 for a colour of AutoCAD's
index, 0 for BYBLOCK and 256 for BYLAYER, which an entity that gives none has.
public int ColorIndex { get; set; }
Property Value
- int
Set, from 0 to 256. The vertices of a POLYLINE follow it, as AutoCAD keeps them, and so they do the linetype, lineweight, linetype scale, visibility, true colour and transparency; a face of a polyface mesh keeps a colour of its own.
Exceptions
- ArgumentOutOfRangeException
Thrown when the colour set is below 0 or above 256.
- InvalidOperationException
Thrown when the entity is erased.