Skip to main content

MapPolygon Class

Definition

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

Represents a polygon region on the map defined by a series of lat/long points.

public class MapPolygon

Inheritance: object -> AvaloniaObject -> MapPolygon

Constructors

NameDescription
MapPolygonInitializes a new instance of the Avalonia.Controls.Charts.MapPolygon class.

MapPolygon Constructor

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

public MapPolygon()

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
FillGets or sets the fill brush.
PointsGets or sets the collection of lat/long points defining the polygon.
StrokeGets or sets the stroke brush.
StrokeThicknessGets or sets the stroke thickness.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
ItemInherited from AvaloniaObject.

Fill Property

Gets or sets the fill brush.

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

Points Property

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

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; }

StrokeThickness Property

Gets or sets the stroke thickness.

public double StrokeThickness { get; set; }

Fields

FillProperty Field

Identifies the Avalonia.Controls.Charts.MapPolygon.Fill Avalonia property.

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

PointsProperty Field

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

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

StrokeProperty Field

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

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

StrokeThicknessProperty Field

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

public Avalonia.StyledProperty<double> StrokeThicknessProperty

Events

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