ImmutableDashStyle Class

Summary

Represents the sequence of dashes and gaps that will be applied by an ImmutablePen.
Namespace
Avalonia.Media.Immutable
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IDashStyle"] click Interface0 "/api/Avalonia.Media/IDashStyle" Type-.->Interface1["IEquatable<IDashStyle>"] Type["ImmutableDashStyle"] class Type type-node

Syntax

public class ImmutableDashStyle : IDashStyle, IEquatable<IDashStyle>

Constructors

Name Summary
ImmutableDashStyle(IEnumerable<double>, double) Initializes a new instance of the ImmutableDashStyle class.

Properties

Name Value Summary
Dashes IReadOnlyList<double>
Gets or sets the length of alternating dashes and gaps.
Offset double
Gets or sets how far in the dash sequence the stroke will start.

Methods

Name Value Summary
Equals(IDashStyle) bool
Equals(object) bool
GetHashCode() int

Extension Methods

Name Value Summary
ToImmutable() ImmutableDashStyle
Converts a dash style to an immutable dash style.