Export (0) Print
Expand All

Pen Members

Pen overview

Public Constructors

public constructorPen Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the Pen class with the specified color.

Public Properties

public propertyAlignment Gets or sets the alignment for this Pen object.
public propertyBrush Gets or sets the Brush object that determines attributes of this Pen object.
public propertyColor

Supported by the .NET Compact Framework.

Gets or sets the color of this Pen object.
public propertyCompoundArray 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.
public propertyCustomEndCap Gets or sets a custom cap to use at the end of lines drawn with this Pen object.
public propertyCustomStartCap Gets or sets a custom cap to use at the beginning of lines drawn with this Pen object.
public propertyDashCap Gets or sets the cap style used at the end of the dashes that make up dashed lines drawn with this Pen object.
public propertyDashOffset Gets or sets the distance from the start of a line to the beginning of a dash pattern.
public propertyDashPattern Gets or sets an array of custom dashes and spaces.
public propertyDashStyle Gets or sets the style used for dashed lines drawn with this Pen object.
public propertyEndCap Gets or sets the cap style used at the end of lines drawn with this Pen object.
public propertyLineJoin Gets or sets the join style for the ends of two consecutive lines drawn with this Pen object.
public propertyMiterLimit Gets or sets the limit of the thickness of the join on a mitered corner.
public propertyPenType Gets the style of lines drawn with this Pen object.
public propertyStartCap Gets or sets the cap style used at the beginning of lines drawn with this Pen object.
public propertyTransform Gets or sets the geometric transformation for this Pen object.
public propertyWidth Gets or sets the width of this Pen object.

Public Methods

public methodClone Creates an exact copy of this Pen object.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodDispose

Supported by the .NET Compact Framework.

Releases all resources used by this Pen object.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodMultiplyTransform Overloaded. Multiplies the transformation matrix for this Pen object by the specified Matrix.
public methodResetTransform Resets the geometric transformation matrix for this Pen object to identity.
public methodRotateTransform Overloaded. Rotates the local geometric transformation by the specified angle. This method prepends the rotation to the transformation.
public methodScaleTransform Overloaded. Scales the local geometric transformation by the specified factors. This method prepends the scaling matrix to the transformation.
public methodSetLineCap Sets the values that determine the style of cap used to end lines drawn by this Pen object.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.
public methodTranslateTransform Overloaded. Translates the local geometric transformation by the specified dimensions. This method prepends the translation to the transformation.

Protected Methods

protected methodFinalize

Supported by the .NET Compact Framework.

Overridden. See Object.Finalize.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Pen Class | System.Drawing Namespace

Show:
© 2014 Microsoft