![]() ![]() | ||
You use the Pen class to draw with in Graphics objects. Here is the hierarchy of the Pen class:
Object MarshalByRefObject Pen
You can find the more notable public properties of Pen objects in Table 13.4 and their more notable public methods in Table 13.5.
Property |
Means |
---|---|
Alignment |
Gets/sets the alignment for drawing objects. |
Brush |
Gets/sets the Brush object of this Pen. |
Color |
Gets/sets the Pen ' s color. |
CompoundArray |
Gets/sets an array of dashes and spaces to configure a Pen. |
CustomEndCap |
Gets/sets the cap style used at the end of lines. |
CustomStartCap |
Gets/sets the cap style used at the beginning of lines. |
DashCap |
Gets/sets the cap style used at the beginning or end of dashed lines. |
DashOffset |
Gets/sets the length from the beginning of a line to the beginning of a dash pattern. |
DashPattern |
Gets/sets an array of dashes and spaces. |
DashStyle |
Gets/sets the style used for dashed lines. |
EndCap |
Gets/sets the cap style used at the end of lines. |
LineJoin |
Gets/sets the style used to join the ends of overlapping lines. |
PenType |
Gets the style of lines this Pen draws. |
StartCap |
Gets/sets the cap style used at the beginning of lines. |
Width |
Gets/sets the width of this Pen in pixels. |
Method |
Means |
---|---|
Clone |
Creates a copy of this Pen. |
Dispose |
Deallocates and disposes of this Pen. |
SetLineCap |
Sets the style of cap used to end lines. |
![]() ![]() | ||