DashStyle Class

Summary

Represents the sequence of dashes and gaps that will be applied by a Pen.
Namespace
Avalonia.Media
Interfaces
Base Types
graph BT Type-->Base0["Animatable"] click Base0 "/api/Avalonia.Animation/Animatable" Base0-->Base1["AvaloniaObject"] click Base1 "/api/Avalonia/AvaloniaObject" Base1-->Base2["object"] Type-.->Interface0["IAvaloniaObject"] click Interface0 "/api/Avalonia/IAvaloniaObject" Type-.->Interface1["IAvaloniaObjectDebug"] click Interface1 "/api/Avalonia.Diagnostics/IAvaloniaObjectDebug" Type-.->Interface2["INotifyPropertyChanged"] Type-.->Interface3["IDashStyle"] click Interface3 "/api/Avalonia.Media/IDashStyle" Type-.->Interface4["IAffectsRender"] click Interface4 "/api/Avalonia.Media/IAffectsRender" Type["DashStyle"] class Type type-node

Syntax

public class DashStyle : Animatable, IAvaloniaObject, IAvaloniaObjectDebug, INotifyPropertyChanged, 
    IDashStyle, IAffectsRender

Constructors

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

Events

Name Type Summary
Invalidated EventHandler
Raised when the dash style changes.
PropertyChanged EventHandler<AvaloniaPropertyChangedEventArgs>
Raised when a AvaloniaProperty value changes on this object.
Inherited from AvaloniaObject

Fields

Name Constant Value Summary
ClockProperty
Inherited from Animatable
static
DashesProperty
Defines the Dashes property.
static
OffsetProperty
Defines the Offset property.
static
TransitionsProperty
Defines the Transitions property.
Inherited from Animatable
static

Properties

Name Value Summary
Clock IClock
Inherited from Animatable
Dash IDashStyle
Represents a dashed DashStyle.
static
DashDot IDashStyle
Represents a dashed dotted DashStyle.
static
DashDotDot IDashStyle
Represents a dashed double dotted DashStyle.
static
Dashes IReadOnlyList<double>
Gets or sets the length of alternating dashes and gaps.
Dot IDashStyle
Represents a dotted DashStyle.
static
InheritanceParent IAvaloniaObject
Gets or sets the parent object that inherited AvaloniaProperty values are inherited from.
Inherited from AvaloniaObject
Offset double
Gets or sets how far in the dash sequence the stroke will start.
this[AvaloniaProperty] object
Gets or sets the value of a AvaloniaProperty.
Inherited from AvaloniaObject
this[IndexerDescriptor] IBinding
Gets or sets a binding for a AvaloniaProperty.
Inherited from AvaloniaObject
Transitions Transitions
Gets or sets the property transitions for the control.
Inherited from Animatable

Methods

Name Value Summary
AffectsValidation(AvaloniaProperty, AvaloniaProperty[]) void
Forces revalidation of properties when a property value changes.
Inherited from AvaloniaObject
static
Bind(AvaloniaProperty, IObservable<object>, BindingPriority) IDisposable
Binds a AvaloniaProperty to an observable.
Inherited from AvaloniaObject
Bind<T>(AvaloniaProperty<T>, IObservable<T>, BindingPriority) IDisposable
Binds a AvaloniaProperty to an observable.
Inherited from AvaloniaObject
CheckAccess() bool
Inherited from AvaloniaObject
ClearValue(AvaloniaProperty) void
Clears a AvaloniaProperty's local value.
Inherited from AvaloniaObject
Equals(object) bool
Compares two objects using reference equality.
Inherited from AvaloniaObject
GetHashCode() int
Gets the hash code for the object.
Inherited from AvaloniaObject
GetValue(AvaloniaProperty) object
Gets a AvaloniaProperty value.
Inherited from AvaloniaObject
GetValue<T>(AvaloniaProperty<T>) T
Gets a AvaloniaProperty value.
Inherited from AvaloniaObject
IsAnimating(AvaloniaProperty) bool
Checks whether a AvaloniaProperty is animating.
Inherited from AvaloniaObject
IsSet(AvaloniaProperty) bool
Checks whether a AvaloniaProperty is set on this object.
Inherited from AvaloniaObject
OnPropertyChanged(AvaloniaPropertyChangedEventArgs) void
Reacts to a change in a AvaloniaProperty value in order to animate the change if a ITransition is set for the property.
Inherited from Animatable
Revalidate(AvaloniaProperty) void
Forces the specified property to be revalidated.
Inherited from AvaloniaObject
SetAndRaise<T>(AvaloniaProperty<T>, T, T) bool
Sets the backing field for a direct avalonia property, raising the PropertyChanged event if the value has changed.
Inherited from AvaloniaObject
SetValue(AvaloniaProperty, object, BindingPriority) void
Sets a AvaloniaProperty value.
Inherited from AvaloniaObject
SetValue<T>(AvaloniaProperty<T>, T, BindingPriority) void
Sets a AvaloniaProperty value.
Inherited from AvaloniaObject
ToImmutable() ImmutableDashStyle
Returns an immutable clone of the DashStyle.
UpdateDataValidation(AvaloniaProperty, BindingNotification) void
Called to update the validation state for properties for which data validation is enabled.
Inherited from AvaloniaObject
VerifyAccess() void
Inherited from AvaloniaObject

Extension Methods