Pen instances are used to draw the outline of geometric shapes.
The following tables list the members exposed by the Pen type.
Name | Description | |
---|---|---|
Overloaded. Initialize a new instance of the Pen class. |
Name | Description | |
---|---|---|
Gets or sets the Brush object that determines attributes of this pen. |
||
Gets or sets the color of this pen. |
||
Gets or sets an array values that specify a compound pen. A compound pen draws a compound line made up of parallel lines and spaces. |
||
Gets or sets the distance from the start of a line to the beginning of a dash pattern. |
||
Gets or sets an array of custom dashes and spaces. |
||
Gets or sets the style used for dashed lines drawn with this pen. |
||
Gets or sets the join style for the ends of two consecutive lines drawn with this pen. |
||
Gets or sets the limit of the thickness of the join on a mitered corner. |
||
Gets or sets the width of the pen. |
Name | Description | |
---|---|---|
Creates an exact copy of this pen. |
||
Overloaded. Returns an instance of the System.Drawing.Pen class corresponding to the current pen. |
||
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the pen. |
||
Serializes the specified pen to a string. |
||
Returns the string representation of this Pen object. |