The Pen type exposes the following members.

Constructors

  NameDescription
Public methodPen()()()()
Create a solid black pen that has a width of 1 user space unit.
Public methodPen(Color)
Create a solid pen with given color that has a width of 1 user space unit.
Public methodPen(Color, Double)
Create a solid pen with given color and fractional width.
Public methodPen(Color, Double, DashPattern)
Create a solid pen with given color, fractional width and pattern.

Methods

  NameDescription
Public methodClone
Clones a Pen.
Public methodEquals
Compare two Pens.
(Overrides Object..::..Equals(Object).)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns base.GetHashCode().
(Overrides Object..::..GetHashCode()()()().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRead(String)
Read from XML file.
(Inherited from Object.)
Public methodRead(XmlElement)
Read from XML element.
(Inherited from Object.)
Public methodRead(XmlReader)
Read from XML reader.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyCapStyle
How caps (end-points) are drawn.
Public propertyColor
Color of this pen.
Public propertyJoinStyle
How joints are drawn.
Public propertyPattern
Pattern of this pen.
Public propertyWidth
Width of this pen.

See Also