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 Pen type exposes the following members.

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

  NameDescription
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 Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (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.)
Protected method Supported by the .NET Compact Framework MemberwiseClone Overloaded.
Public method MultiplyTransform Overloaded. Multiplies the transformation matrix for this Pen by the specified Matrix.
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

  NameDescription
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 a copy of the geometric transformation for this Pen.
Public property Supported by the .NET Compact Framework Width Gets or sets the width of this Pen, in units of the Graphics object used for drawing.
Top
Show: