NShape Reference
ToolCache.GetPen Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced > ToolCache Class >

NShape Reference
ToolCache.GetPen Method

Previous pageReturn to chapter overviewNext page

Retrieves a pen with the given properties.

Syntax

Pen GetPen(ILineStyle lineStyle, ICapStyle startCapStyle, ICapStyle endCapStyle)

Description

If the pen does not yet exist in the pen cache, it is created and stored for future use.

Parameters

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.

Exceptions

Exception

Condition

ArgumentNullException

The given LineStyle is null.