PenExtensions Class
Provides extension methods for the type System.Windows.Media.Pen.
public static class PenExtensions
- Inheritance:
- System.Object Object
Methods
Tint(Pen, Color)
Returns a clone of the specified System.Windows.Media.Pen that has been tinted towards the specified System.Windows.Media.Color.
public static Pen Tint(this Pen pen, Color tintColor)
Parameter | Type | Description |
---|---|---|
pen | System.Windows.Media.Pen | The System.Windows.Media.Pen to clone and tint. |
tintColor | System.Windows.Media.Color | The tint System.Windows.Media.Color. |
Returns
- System.Windows.Media.Pen:
A clone of the specified System.Windows.Media.Pen that has been tinted towards the specified System.Windows.Media.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, Boolean)
Returns a clone of the specified System.Windows.Media.Pen that has been tinted towards the specified System.Windows.Media.Color.
public static Pen Tint(this Pen pen, Color tintColor, bool freeze)
Parameter | Type | Description |
---|---|---|
pen | System.Windows.Media.Pen | The System.Windows.Media.Pen to clone and tint. |
tintColor | System.Windows.Media.Color | The tint System.Windows.Media.Color. |
freeze | System.Boolean | if set to |
Returns
- System.Windows.Media.Pen:
A clone of the specified System.Windows.Media.Pen that has been tinted towards the specified System.Windows.Media.Color.
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()