Skip to main content

DashStyle Class

Definition

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia

Represents the sequence of dashes and gaps that will be applied by a Avalonia.Media.Pen.

public class DashStyle

Inheritance: object -> AvaloniaObject -> Animatable -> DashStyle

Implements:IDashStyle

Constructors

NameDescription
DashStyle (2 overloads)Initializes a new instance of the Avalonia.Media.DashStyle class.

DashStyle overloads

DashStyle Constructor

Initializes a new instance of the Avalonia.Media.DashStyle class.

public DashStyle()

DashStyle Constructor

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

dashes System.Collections.Generic.IEnumerable<double>

offset double

Methods

NameDescription
ToImmutableReturns an immutable clone of the Avalonia.Media.DashStyle.
Bind (8 overloads)Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject.
CheckAccessReturns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject.
ClearValue (4 overloads)Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject.
CoerceValueCoerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject.
EqualsCompares two objects using reference equality. Inherited from AvaloniaObject.
GetBaseValueInherited from AvaloniaObject.
GetHashCodeGets the hash code for the object. Inherited from AvaloniaObject.
GetValue (3 overloads)Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
IsAnimatingChecks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject.
IsSetChecks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject.
SetCurrentValue (2 overloads)Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject.
SetValue (3 overloads)Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
VerifyAccessChecks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject.

ToImmutable Method

Returns an immutable clone of the Avalonia.Media.DashStyle.

public Avalonia.Media.Immutable.ImmutableDashStyle ToImmutable()

Returns

Avalonia.Media.Immutable.ImmutableDashStyle

Properties

NameDescription
DashRepresents a dashed Avalonia.Media.DashStyle.
DashDotRepresents a dashed dotted Avalonia.Media.DashStyle.
DashDotDotRepresents a dashed double dotted Avalonia.Media.DashStyle.
DashesGets or sets the length of alternating dashes and gaps.
DotRepresents a dotted Avalonia.Media.DashStyle.
OffsetGets or sets how far in the dash sequence the stroke will start.
TransitionsGets or sets the property transitions for the control. Inherited from Animatable.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
ItemInherited from AvaloniaObject.

Dash Property

Represents a dashed Avalonia.Media.DashStyle.

public Avalonia.Media.IDashStyle Dash { get; set; }

DashDot Property

Represents a dashed dotted Avalonia.Media.DashStyle.

public Avalonia.Media.IDashStyle DashDot { get; set; }

DashDotDot Property

Represents a dashed double dotted Avalonia.Media.DashStyle.

public Avalonia.Media.IDashStyle DashDotDot { get; set; }

Dashes Property

Gets or sets the length of alternating dashes and gaps.

public Avalonia.Collections.AvaloniaList<T><double> Dashes { get; set; }

Dot Property

Represents a dotted Avalonia.Media.DashStyle.

public Avalonia.Media.IDashStyle Dot { get; set; }

Offset Property

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

public double Offset { get; set; }

Fields

DashesProperty Field

Defines the Avalonia.Media.DashStyle.Dashes property.

public Avalonia.StyledProperty<TValue><Avalonia.Collections.AvaloniaList<T><double>> DashesProperty

OffsetProperty Field

Defines the Avalonia.Media.DashStyle.Offset property.

public Avalonia.StyledProperty<TValue><double> OffsetProperty

Events

NameDescription
PropertyChangedRaised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject.