DashStyle Class
Definition
Represents the sequence of dashes and gaps that will be applied by a Avalonia.Media.Pen.
public class DashStyle
Constructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| ToImmutable | Returns an immutable clone of the Avalonia.Media.DashStyle. |
| Bind (8 overloads) | Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject. |
| CheckAccess | Returns 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. |
| CoerceValue | Coerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject. |
| Equals | Compares two objects using reference equality. Inherited from AvaloniaObject. |
| GetBaseValue | Inherited from AvaloniaObject. |
| GetHashCode | Gets the hash code for the object. Inherited from AvaloniaObject. |
| GetValue (3 overloads) | Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| IsAnimating | Checks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject. |
| IsSet | Checks 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. |
| VerifyAccess | Checks 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
Properties
| Name | Description |
|---|---|
| Dash | Represents a dashed Avalonia.Media.DashStyle. |
| DashDot | Represents a dashed dotted Avalonia.Media.DashStyle. |
| DashDotDot | Represents a dashed double dotted Avalonia.Media.DashStyle. |
| Dashes | Gets or sets the length of alternating dashes and gaps. |
| Dot | Represents a dotted Avalonia.Media.DashStyle. |
| Offset | Gets or sets how far in the dash sequence the stroke will start. |
| Transitions | Gets or sets the property transitions for the control. Inherited from Animatable. |
| Dispatcher | Returns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject. |
| Item | Inherited 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
| Name | Description |
|---|---|
| DashesProperty | Defines the Avalonia.Media.DashStyle.Dashes property. |
| OffsetProperty | Defines the Avalonia.Media.DashStyle.Offset property. |
| TransitionsProperty | Defines the Avalonia.Animation.Animatable.Transitions property. Inherited from Animatable. |
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
| Name | Description |
|---|---|
| PropertyChanged | Raised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject. |