Version

GetPen Method

Returns a cached pen of the requested type. This pen should not be disposed of. It will be cleaned up eventually when the dispose method of this class is called.
Syntax
'Declaration
 
Public Function GetPen( _
   ByVal penType As DrawCache.PenType, _
   ByVal color As Color _
) As Pen
public Pen GetPen( 
   DrawCache.PenType penType,
   Color color
)

Parameters

penType
The type of pen (e.g. solid, dotted, dashed etc.
color
The desired color

Return Value

The returned pen (do not dispose)
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also