Skip to main content

ImmutableDashStyle Class

Represents the sequence of dashes and gaps that will be applied by an ImmutablePen.

Definition​

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

public class ImmutableDashStyle : IDashStyle, 
IEquatable<IDashStyle>
View Source
InheritanceObject → ImmutableDashStyle
ImplementsIDashStyle, IEquatable(IDashStyle)

Constructors​

ImmutableDashStyle(IEnumerable(Double), Double)Initializes a new instance of the ImmutableDashStyle class.

Properties​

DashesGets or sets the length of alternating dashes and gaps.
OffsetGets or sets how far in the dash sequence the stroke will start.

Methods​

Equals(IDashStyle)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 dash style to an immutable dash style.
(Defined by BrushExtensions)

See Also​

Reference​

Avalonia.Media.Immutable Namespace