In This Article

PenExtensions Class

Provides extension methods for the type Pen.

public static class PenExtensions
Inheritance:
object object

Methods

Tint(Pen, Color)

Returns a clone of the specified Pen that has been tinted towards the specified Color.

public static Pen Tint(this Pen pen, Color tintColor)
Parameter Type Description
pen Pen

The Pen to clone and tint.

tintColor Color

The tint Color.

Returns

Pen:

A clone of the specified Pen that has been tinted towards the specified Color.

Remarks

The pen returned will be always be frozen. A non-frozen pen can be obtained by calling the Tint(Pen, Color) overload.

Tint(Pen, Color, bool)

Returns a clone of the specified Pen that has been tinted towards the specified Color.

public static Pen Tint(this Pen pen, Color tintColor, bool freeze)
Parameter Type Description
pen Pen

The Pen to clone and tint.

tintColor Color

The tint Color.

freeze bool

if set to true then the Pen will be frozen before it is returned.

Returns

Pen:

A clone of the specified Pen that has been tinted towards the specified Color.

Inherited Members