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
itemDisplayItem2The 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
rgbintThe colour the object is drawn in, 0xRRGGBB.
layerstringThe layer it is drawn on; null for none.
handlestringThe handle of its entity, or of the outermost block reference it is in; null for none.
Returns
- CadPlotPen
The pen.