ImmutablePen Class
Describes how a stroke is drawn.
Definition
Namespace: Avalonia.Media.Immutable
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public class ImmutablePen : IPen,
IEquatable<IPen>
Public Class ImmutablePen
Implements IPen, IEquatable(Of IPen)
type ImmutablePen =
class
interface IPen
interface IEquatable<IPen>
end
Inheritance | Object → ImmutablePen |
Implements | IPen, IEquatable(IPen) |
Constructors
ImmutablePen(IImmutableBrush, Double, ImmutableDashStyle, PenLineCap, PenLineJoin, Double) | Initializes a new instance of the Pen class. |
ImmutablePen(UInt32, Double, ImmutableDashStyle, PenLineCap, PenLineJoin, Double) | Initializes a new instance of the Pen class. |
Properties
Brush | Gets the brush used to draw the stroke. |
DashStyle | Specifies the style of dashed lines drawn with a Pen object. |
LineCap | Specifies the type of graphic shape to use on both ends of a line. |
LineJoin | Specifies how to join consecutive line or curve segments in a PathFigure (subpaths) contained in a PathGeometry object. |
MiterLimit | The limit on the ratio of the miter length to half this pen's Thickness. |
Thickness | Gets the stroke thickness. |
Methods
Equals(IPen) | Indicates whether the current object is equal to another object of the same type. |
Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides Object.Equals(Object)) |
Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode() | Serves as the default hash function. (Overrides Object.GetHashCode()) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() | Returns a string that represents the current object. (Inherited from Object) |
Extension Methods
ToImmutable() | Converts a pen to an immutable pen. (Defined by BrushExtensions) |