Class ImmutableDashStyle
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
doubleThe dash sequence offset.
Properties
Dashes
Gets or sets the length of alternating dashes and gaps.
public IReadOnlyList<double> Dashes { get; }
Property Value
Offset
Gets or sets how far in the dash sequence the stroke will start.
public double Offset { get; }
Property Value
Methods
Equals(IDashStyle?)
public bool Equals(IDashStyle? other)
Parameters
other
IDashStyle
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()