This documentation is archived and is not being maintained.

Pen Members

Defines an object used to draw lines and curves. This class cannot be inherited.

The following tables list the members exposed by the Pen type.

  Name Description
Public method Supported by the .NET Compact Framework Pen Overloaded. Initializes a new instance of the Pen class with the specified color.
Top

  Name Description
Public property Alignment Gets or sets the alignment for this Pen.
Public property Brush Gets or sets the Brush that determines attributes of this Pen.
Public property Supported by the .NET Compact Framework Color Gets or sets the color of this Pen.
Public property CompoundArray Gets or sets an array of values that specifies a compound pen. A compound pen draws a compound line made up of parallel lines and spaces.
Public property CustomEndCap Gets or sets a custom cap to use at the end of lines drawn with this Pen.
Public property CustomStartCap Gets or sets a custom cap to use at the beginning of lines drawn with this Pen.
Public property DashCap Gets or sets the cap style used at the end of the dashes that make up dashed lines drawn with this Pen.
Public property DashOffset Gets or sets the distance from the start of a line to the beginning of a dash pattern.
Public property DashPattern Gets or sets an array of custom dashes and spaces.
Public property Supported by the .NET Compact Framework DashStyle Gets or sets the style used for dashed lines drawn with this Pen.
Public property EndCap Gets or sets the cap style used at the end of lines drawn with this Pen.
Public property LineJoin Gets or sets the join style for the ends of two consecutive lines drawn with this Pen.
Public property MiterLimit Gets or sets the limit of the thickness of the join on a mitered corner.
Public property PenType Gets the style of lines drawn with this Pen.
Public property StartCap Gets or sets the cap style used at the beginning of lines drawn with this Pen.
Public property Transform Gets or sets the geometric transformation for this Pen.
Public property Supported by the .NET Compact Framework Width Gets or sets the width of this Pen.
Top

(see also Protected Methods )
  Name Description
Public method Supported by the .NET Compact Framework Clone Creates an exact copy of this Pen.
Public method CreateObjRef  Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (inherited from MarshalByRefObject)
Public method Supported by the .NET Compact Framework Dispose Releases all resources used by this Pen.
Public method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Supported by the .NET Compact Framework GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetLifetimeService  Retrieves the current lifetime service object that controls the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (inherited from Object)
Public method InitializeLifetimeService  Obtains a lifetime service object to control the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public method MultiplyTransform Overloaded. Multiplies the transformation matrix for this Pen by the specified Matrix.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ResetTransform Resets the geometric transformation matrix for this Pen to identity.
Public method RotateTransform Overloaded. Rotates the local geometric transformation by the specified angle. This method prepends the rotation to the transformation.
Public method ScaleTransform Overloaded. Scales the local geometric transformation by the specified factors. This method prepends the scaling matrix to the transformation.
Public method SetLineCap Sets the values that determine the style of cap used to end lines drawn by this Pen.
Public method Supported by the .NET Compact Framework ToString  Returns a String that represents the current Object. (inherited from Object)
Public method TranslateTransform Overloaded. Translates the local geometric transformation by the specified dimensions. This method prepends the translation to the transformation.
Top

  Name Description
Protected method Supported by the .NET Compact Framework 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)
Protected method Supported by the .NET Compact Framework MemberwiseClone  Overloaded. (inherited from MarshalByRefObject)
Top
Show: