This documentation is archived and is not being maintained.

Pen Methods

The methods of the Pen class are listed here. For a complete list of Pen class members, see the Pen Members topic.

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: