Skip to main content

MapPolyline Class

Definition​

Assembly:Avalonia.Controls.Charts
Package:Avalonia.Controls.Charts

Represents an open polyline on the map defined by a series of lat/long points. Unlike MapPolygon, this renders as an open path (not closed).

public class MapPolyline

Inheritance: object -> AvaloniaObject -> MapPolyline

Constructors​

NameDescription
MapPolylineInitializes a new instance of the Avalonia.Controls.Charts.MapPolyline class.

MapPolyline Constructor​

Initializes a new instance of the Avalonia.Controls.Charts.MapPolyline class.

public MapPolyline()

Methods​

NameDescription
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.

Properties​

NameDescription
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
ItemInherited from AvaloniaObject.
PointsGets or sets the collection of lat/long points defining the polyline.
StrokeGets or sets the stroke brush.
StrokeDashStyleGets or sets the dash style for dashed lines.
StrokeThicknessGets or sets the stroke thickness.

Points Property​

Gets or sets the collection of lat/long points defining the polyline.

public System.Collections.Generic.IList<Avalonia.Controls.Charts.MapLatLng> Points { get; set; }

Stroke Property​

Gets or sets the stroke brush.

public Avalonia.Media.IBrush Stroke { get; set; }

StrokeDashStyle Property​

Gets or sets the dash style for dashed lines.

public Avalonia.Media.DashStyle StrokeDashStyle { get; set; }

StrokeThickness Property​

Gets or sets the stroke thickness.

public double StrokeThickness { get; set; }

Fields​

PointsProperty Field​

Identifies the Avalonia.Controls.Charts.MapPolyline.Points Avalonia property.

public Avalonia.StyledProperty<System.Collections.Generic.IList<Avalonia.Controls.Charts.MapLatLng>> PointsProperty

StrokeDashStyleProperty Field​

Identifies the Avalonia.Controls.Charts.MapPolyline.StrokeDashStyle Avalonia property.

public Avalonia.StyledProperty<Avalonia.Media.DashStyle> StrokeDashStyleProperty

StrokeProperty Field​

Identifies the Avalonia.Controls.Charts.MapPolyline.Stroke Avalonia property.

public Avalonia.StyledProperty<Avalonia.Media.IBrush> StrokeProperty

StrokeThicknessProperty Field​

Identifies the Avalonia.Controls.Charts.MapPolyline.StrokeThickness Avalonia property.

public Avalonia.StyledProperty<double> StrokeThicknessProperty

Events​

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