<< Click to Display Table of Contents >> NShape Reference
|
Retrieves a pen with the given properties.
Pen GetPen(ILineStyle lineStyle, ICapStyle startCapStyle, ICapStyle endCapStyle) |
If the pen does not yet exist in the pen cache, it is created and stored for future use.
Name |
Description |
---|---|
lineStyle |
Defines the properties of the pen. |
startCapStyle |
Optional. Defines the start cap of the pen if not null. |
endCapStyle |
Optional. Defines the end cap of the pen if not null. |
Exception |
Condition |
---|---|
ArgumentNullException |
The given LineStyle is null. |