Property Color
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
Color
Gets or sets the colour of the layer, as AutoCAD's Color: its true colour (420, its book's name 430) where it
has one, else the colour of its index (62), whether the layer is on or off. It agrees with ColorIndex
and TrueColor; a true colour carries the index nearest it, as FromRgb(byte, byte, byte) gives it.
public DxfColor Color { get; set; }
Property Value
- DxfColor
Set, a colour of the index, which takes out a true colour, or a true colour, written with the index nearest it.
Exceptions
- ArgumentNullException
Thrown when the colour set is null.
- ArgumentException
Thrown when the colour set is by layer, by block or another a layer does not take.
- InvalidOperationException
Thrown when a true colour is set in a file older than R2004 (AC1018).