Skip to main content

ImmutablePen Class

Describes how a stroke is drawn.

Definition

Namespace: Avalonia.Media.Immutable
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public class ImmutablePen : IPen, 
IEquatable<IPen>
View Source
InheritanceObject → ImmutablePen
ImplementsIPen, 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

BrushGets the brush used to draw the stroke.
DashStyleSpecifies the style of dashed lines drawn with a Pen object.
LineCapSpecifies the type of graphic shape to use on both ends of a line.
LineJoinSpecifies how to join consecutive line or curve segments in a PathFigure (subpaths) contained in a PathGeometry object.
MiterLimitThe limit on the ratio of the miter length to half this pen's Thickness.
ThicknessGets 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)

See Also

Reference

Avalonia.Media.Immutable Namespace