Table of Contents

Method PenFor

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

PenFor(DisplayItem2)

Gets the pen of an item: its colour, and what its style sets.

public CadPlotPen PenFor(DisplayItem2 item)

Parameters

item DisplayItem2

The item.

Returns

CadPlotPen

The pen.

Exceptions

ArgumentNullException

Thrown when the item is null.

PenFor(int, string, string)

Gets the pen of an object of a colour, a layer and an entity.

public CadPlotPen PenFor(int rgb, string layer, string handle)

Parameters

rgb int

The colour the object is drawn in, 0xRRGGBB.

layer string

The layer it is drawn on; null for none.

handle string

The handle of its entity, or of the outermost block reference it is in; null for none.

Returns

CadPlotPen

The pen.