Skip to main content

ImmutableDashStyle Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia

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

public class ImmutableDashStyle

Inheritance: object -> ImmutableDashStyle

Implements: IDashStyle, IEquatable<IDashStyle>

Constructors​

NameDescription
ImmutableDashStyleNo summary available.

ImmutableDashStyle Constructor​

public ImmutableDashStyle(System.Collections.Generic.IEnumerable<double> dashes, double offset)

Parameters​

dashes System.Collections.Generic.IEnumerable<double>

offset double

Methods​

NameDescription
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Media.IDashStyle other)
Parameters​

other Avalonia.Media.IDashStyle

Returns​

bool

Equals Method​

public bool Equals(object obj)
Parameters​

obj object

Returns​

bool

GetHashCode Method​

public int GetHashCode()

Returns​

int

Properties​

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

Dashes Property​

Gets or sets the length of alternating dashes and gaps.

public System.Collections.Generic.IReadOnlyList<double> Dashes { get; set; }

Offset Property​

Gets or sets how far in the dash sequence the stroke will start.

public double Offset { get; set; }