The Pen type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Pen()()()() |
Create a solid black pen that has a width of 1 user space unit.
| |
| Pen(Color) |
Create a solid pen with given color that has a width of 1 user space unit.
| |
| Pen(Color, Double) |
Create a solid pen with given color and fractional width.
| |
| Pen(Color, Double, DashPattern) |
Create a solid pen with given color, fractional width and pattern.
|
Methods
| Name | Description | |
|---|---|---|
| Clone |
Clones a Pen.
| |
| Equals |
Compare two Pens.
(Overrides Object..::..Equals(Object).) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode |
Returns base.GetHashCode().
(Overrides Object..::..GetHashCode()()()().) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Read(String) |
Read from XML file.
(Inherited from Object.) | |
| Read(XmlElement) |
Read from XML element.
(Inherited from Object.) | |
| Read(XmlReader) |
Read from XML reader.
(Inherited from Object.) | |
| ToString | (Inherited from Object.) |
Properties
| Name | Description | |
|---|---|---|
| CapStyle |
How caps (end-points) are drawn.
| |
| Color |
Color of this pen.
| |
| JoinStyle |
How joints are drawn.
| |
| Pattern |
Pattern of this pen.
| |
| Width |
Width of this pen.
|