Polygon Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a polygon drawn on the map control.
public ref class Polygon : Microsoft::Maui::Controls::Maps::MapElement, Microsoft::Maui::IElement, Microsoft::Maui::IStroke, Microsoft::Maui::Maps::IFilledMapElement, Microsoft::Maui::Maps::IGeoPathMapElement, System::Collections::Generic::ICollection<Microsoft::Maui::Devices::Sensors::Location ^>, System::Collections::Generic::IEnumerable<Microsoft::Maui::Devices::Sensors::Location ^>, System::Collections::Generic::IList<Microsoft::Maui::Devices::Sensors::Location ^>
public class Polygon : Microsoft.Maui.Controls.Maps.MapElement, Microsoft.Maui.IElement, Microsoft.Maui.IStroke, Microsoft.Maui.Maps.IFilledMapElement, Microsoft.Maui.Maps.IGeoPathMapElement, System.Collections.Generic.ICollection<Microsoft.Maui.Devices.Sensors.Location>, System.Collections.Generic.IEnumerable<Microsoft.Maui.Devices.Sensors.Location>, System.Collections.Generic.IList<Microsoft.Maui.Devices.Sensors.Location>
type Polygon = class
inherit MapElement
interface IGeoPathMapElement
interface IMapElement
interface IElement
interface IStroke
interface IList<Location>
interface ICollection<Location>
interface seq<Location>
interface IEnumerable
interface IFilledMapElement
Public Class Polygon
Inherits MapElement
Implements ICollection(Of Location), IElement, IEnumerable(Of Location), IFilledMapElement, IGeoPathMapElement, IList(Of Location), IStroke
- Inheritance
- Implements
Constructors
Polygon() |
Initializes a new instance of the Polygon class. |
Fields
FillColorProperty |
Bindable property for FillColor. |
transientNamescope | (Inherited from Element) |
Properties
AutomationId |
Gets or sets a value that allows the automation framework to find and interact with this element. (Inherited from Element) |
BindingContext |
Gets or sets an object that contains the properties that will be targeted by the bound properties that belong to this BindableObject. This is a bindable property. (Inherited from BindableObject) |
ClassId |
Gets or sets a value used to identify a collection of semantically similar elements. (Inherited from Element) |
Count |
Gets the location object count in this polygon. |
Dispatcher |
Gets the dispatcher that was available when this bindable object was created, otherwise tries to find the nearest available dispatcher (probably the window's/app's). (Inherited from BindableObject) |
EffectControlProvider |
For internal use by .NET MAUI. (Inherited from Element) |
Effects |
Gets or sets the styles and properties that will be applied to the element during runtime. (Inherited from Element) |
Fill |
Gets the fill color. |
FillColor |
Gets or sets the fill color. This is a bindable property. |
Geopath |
Gets a list of locations on the map which forms the outline of this polygon on the map. |
Handler |
Gets or sets the associated handler for this element. (Inherited from Element) |
Id |
Gets a value that can be used to uniquely identify an element throughout the run of your application. (Inherited from Element) |
IsReadOnly |
Gets whether this polygon is read-only. |
Item[Int32] |
Gets or sets the location object at the specified index. |
LogicalChildren |
Obsolete.
(Inherited from Element)
|
MapElementId |
Gets or sets the platform counterpart of this map element. (Inherited from MapElement) |
Parent |
Gets or sets the parent Element of this element. (Inherited from Element) |
RealParent |
For internal use by .NET MAUI. (Inherited from Element) |
StrokeColor |
Gets or sets the stroke color. This is a bindable property. (Inherited from MapElement) |
StrokeWidth |
Gets or sets the stroke width. The default value is |
StyleId |
Gets or sets a user defined value to uniquely identify the element. (Inherited from Element) |
Methods
Add(Location) |
Adds a location to this polygon. |
AddLogicalChild(Element) |
Adds an Element to the logical children. (Inherited from Element) |
ApplyBindings() |
Applies all the current bindings to BindingContext. (Inherited from BindableObject) |
Clear() |
Clears all locations that make up this polygon. |
ClearLogicalChildren() |
Removes all child Elements. (Inherited from Element) |
ClearValue(BindableProperty) |
Clears any value that is previously set for a bindable property. (Inherited from BindableObject) |
ClearValue(BindablePropertyKey) |
Clears any value that is previously set for a bindable property, identified by its key. (Inherited from BindableObject) |
CoerceValue(BindableProperty) |
Coerces the value of the specified bindable property. This is done by invoking BindableProperty.CoerceValueDelegate of the specified bindable property. (Inherited from BindableObject) |
CoerceValue(BindablePropertyKey) |
Coerces the value of the specified bindable property. This is done by invoking BindableProperty.CoerceValueDelegate of the specified bindable property. (Inherited from BindableObject) |
Contains(Location) |
Returns whether the specified location is contained in this polygon. |
CopyTo(Location[], Int32) |
Copies the child locations to the specified array. |
EffectIsAttached(String) |
For internal use by .NET MAUI. (Inherited from Element) |
FindByName(String) |
Returns the element that has the specified name. (Inherited from Element) |
GetEnumerator() |
Returns an enumerator that lists all of the location object in this polygon. |
GetValue(BindableProperty) |
Returns the value that is contained in the given bindable property. (Inherited from BindableObject) |
IndexOf(Location) |
Gets the index of a specified location object. |
Insert(Int32, Location) |
Inserts a location object at the specified index. |
InsertLogicalChild(Int32, Element) |
Inserts an Element to the logical children at the specified index. (Inherited from Element) |
IsSet(BindableProperty) |
Determines whether or not a bindable property exists and has a value set. (Inherited from BindableObject) |
OnBindingContextChanged() |
Invoked whenever the binding context of the element changes. Implement this method to add class handling for this event. (Inherited from Element) |
OnChildAdded(Element) |
Raises the ChildAdded event. Implement this method to add class handling for this event. (Inherited from Element) |
OnChildRemoved(Element, Int32) |
Raises the ChildRemoved event. Implement this method to add class handling for this event (Inherited from Element) |
OnHandlerChanged() |
When overridden in a derived class, should raise the HandlerChanged event. (Inherited from Element) |
OnHandlerChanging(HandlerChangingEventArgs) |
When overridden in a derived class, should raise the HandlerChanging event. (Inherited from Element) |
OnParentChanged() |
When overridden in a derived class, should raise the ParentChanged event. (Inherited from Element) |
OnParentChanging(ParentChangingEventArgs) |
When overridden in a derived class, should raise the ParentChanging event. (Inherited from Element) |
OnParentSet() |
Raises the (internal) |
OnPropertyChanged(String) |
Method that is called when a bound property is changed. (Inherited from Element) |
OnPropertyChanging(String) |
Raises the PropertyChanging event. (Inherited from BindableObject) |
Remove(Location) |
Removes a location object from this polygon. |
RemoveAt(Int32) |
Removes a location object at the specified index. |
RemoveBinding(BindableProperty) |
Removes a previously set binding from a bindable property. (Inherited from BindableObject) |
RemoveDynamicResource(BindableProperty) |
Removes a previously set dynamic resource. (Inherited from Element) |
RemoveLogicalChild(Element) |
Removes the first occurrence of a specific Element from the logical children. (Inherited from Element) |
SetBinding(BindableProperty, BindingBase) |
Assigns a binding to a bindable property. (Inherited from BindableObject) |
SetDynamicResource(BindableProperty, String) |
Sets the BindableProperty property of this element to be updated via the DynamicResource with the provided key. (Inherited from Element) |
SetValue(BindableProperty, Object) |
Sets the value of the specified bindable property. (Inherited from BindableObject) |
SetValue(BindablePropertyKey, Object) |
Sets the value of the specified bindable property. (Inherited from BindableObject) |
SetValueFromRenderer(BindableProperty, Object) |
For internal use by .NET MAUI. (Inherited from Element) |
SetValueFromRenderer(BindablePropertyKey, Object) |
For internal use by .NET MAUI. (Inherited from Element) |
UnapplyBindings() |
Removes all current bindings from the current context. (Inherited from BindableObject) |
Events
BindingContextChanged |
Occurs when the value of the BindingContext property changes. (Inherited from BindableObject) |
ChildAdded |
Raised whenever a child element is added to the element. (Inherited from Element) |
ChildRemoved |
Raised whenever a child element is removed from the element. (Inherited from Element) |
DescendantAdded |
Raised whenever a child element is added to the element's subtree. (Inherited from Element) |
DescendantRemoved |
Raised whenever a child element is removed from the elements subtree. (Inherited from Element) |
HandlerChanged |
Raised whenever the element's handler has changed. (Inherited from Element) |
HandlerChanging |
Raised whenever the element's handler starts to change. (Inherited from Element) |
ParentChanged |
Raised whenever the element's parent has changed. (Inherited from Element) |
ParentChanging |
Raised whenever the element's starts to change. (Inherited from Element) |
PropertyChanged |
Occurs when a property value changes. (Inherited from BindableObject) |
PropertyChanging |
Occurs when a property value is changing. (Inherited from BindableObject) |
Explicit Interface Implementations
IContextFlyoutElement.ContextFlyout |
Gets the ContextFlyout for the view. Menu flyouts, menu flyout subitems, and menu flyout separators can be added to the context flyout. (Inherited from Element) |
IDynamicResourceHandler.SetDynamicResource(BindableProperty, String) | (Inherited from BindableObject) |
IEffectControlProvider.RegisterEffect(Effect) |
Registers the specified |
IElement.Parent |
Gets the Parent of the Element. (Inherited from Element) |
IElementController.Descendants() |
For internal use by .NET MAUI. (Inherited from Element) |
IElementController.LogicalChildren |
For internal use by .NET MAUI. (Inherited from Element) |
IElementController.SetValueFromRenderer(BindableProperty, Object) |
For internal use by .NET MAUI. (Inherited from Element) |
IEnumerable.GetEnumerator() | |
INameScope.RegisterName(String, Object) |
For internal use by .NET MAUI. (Inherited from Element) |
INameScope.UnregisterName(String) |
For internal use by .NET MAUI. (Inherited from Element) |
IStroke.Stroke | (Inherited from MapElement) |
IStroke.StrokeDashOffset | (Inherited from MapElement) |
IStroke.StrokeDashPattern | (Inherited from MapElement) |
IStroke.StrokeLineCap | (Inherited from MapElement) |
IStroke.StrokeLineJoin | (Inherited from MapElement) |
IStroke.StrokeMiterLimit | (Inherited from MapElement) |
IStroke.StrokeThickness | (Inherited from MapElement) |
IToolTipElement.ToolTip |
Represents a small rectangular pop-up window that displays a brief description of a view's purpose when the user rests the pointer on the view. (Inherited from Element) |
IVisualTreeElement.GetVisualChildren() |
Gets a readonly list of the element's visual children. (Inherited from Element) |
IVisualTreeElement.GetVisualParent() |
Gets the element's visual parent. (Inherited from Element) |