Table of Contents

Method Color

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Color(string, DxfColor, Func<DxfColor, string>)

Makes a row for a colour, written as the palette writes one (ByLayer, ByBlock, Red to White, an index 1 to 255, or 255,128,0) and read the same way; the window offers its list of colours with Select Color. Text that does not read is refused with the palette's own words and the setter is not called.

public static CadPropertyRow Color(string label, DxfColor color, Func<DxfColor, string> setter)

Parameters

label string

The label.

color DxfColor

The colour.

setter Func<DxfColor, string>

What changes the colour; null for a row that is only read.

Returns

CadPropertyRow

The row.