Gets the pen whose color is specified by the AppearanceObject.ForeColor property.
public Pen GetForePen( GraphicsCache cache )
Public Function GetForePen( cache As GraphicsCache ) As Pen
A GraphicsCache object that provides access to the pens and brushes used for painting.
A Pen object representing a pen specified by the appearance object's settings.
If the cache parameter's value is not a null reference, the GetForePen method uses the GraphicsCache object to obtain the pen whose color is specified by the foreground color settings of the current appearance object. This lets you obtain the pen more quickly, since it may already be stored within the cache. Otherwise, a new Pen object with appropriate settings is created and returned.
Use the AppearanceObject.GetForeColor method to obtain the foreground color specified by the appearance object's settings.