MapPolygon Class
Definition
Represents a polygon region on the map defined by a series of lat/long points.
public class MapPolygon
Constructors
| Name | Description |
|---|---|
| MapPolygon | Initializes 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
| Name | Description |
|---|---|
| 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. |
Properties
| Name | Description |
|---|---|
| Fill | Gets or sets the fill brush. |
| Points | Gets or sets the collection of lat/long points defining the polygon. |
| Stroke | Gets or sets the stroke brush. |
| StrokeThickness | Gets or sets the stroke thickness. |
| Dispatcher | Returns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject. |
| Item | Inherited 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
| Name | Description |
|---|---|
| FillProperty | Identifies the Avalonia.Controls.Charts.MapPolygon.Fill Avalonia property. |
| PointsProperty | Identifies the Avalonia.Controls.Charts.MapPolygon.Points Avalonia property. |
| StrokeProperty | Identifies the Avalonia.Controls.Charts.MapPolygon.Stroke Avalonia property. |
| StrokeThicknessProperty | Identifies the Avalonia.Controls.Charts.MapPolygon.StrokeThickness Avalonia property. |
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
| Name | Description |
|---|---|
| PropertyChanged | Raised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject. |