Property Color
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
Color
Gets or sets the colour of the layer in the viewport, as AutoCAD's Color: the override, of the index or a true
colour, else the layer's Color.
public DxfColor Color { get; set; }
Property Value
- DxfColor
Set, a colour of the index, 1 to 255, or a true colour, written as the override of the viewport even where it is the layer's own.
Exceptions
- ArgumentNullException
Thrown when the colour set is null.
- ArgumentException
Thrown when the colour set is BYLAYER, BYBLOCK or another a layer does not take.
- InvalidOperationException
Thrown when the layer or the viewport is erased or in no file, they are of two files, the file is older than R2000 (AC1015), or a true colour is set in one older than R2004 (AC1018).