Table of Contents

Class ImmutableDashStyle

Namespace
Avalonia.Media.Immutable
Assembly
Avalonia.Base.dll

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

public class ImmutableDashStyle : IDashStyle, IEquatable<IDashStyle>
Inheritance
ImmutableDashStyle
Implements
Inherited Members
Extension Methods

Constructors

ImmutableDashStyle(IEnumerable<double>?, double)

Initializes a new instance of the ImmutableDashStyle class.

public ImmutableDashStyle(IEnumerable<double>? dashes, double offset)

Parameters

dashes IEnumerable<double>

The dashes collection.

offset double

The dash sequence offset.

Properties

Dashes

Gets or sets the length of alternating dashes and gaps.

public IReadOnlyList<double> Dashes { get; }

Property Value

IReadOnlyList<double>

Offset

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

public double Offset { get; }

Property Value

double

Methods

Equals(IDashStyle?)

public bool Equals(IDashStyle? other)

Parameters

other IDashStyle

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int