Share via


Polygon.Contains(Location) Method

Definition

Returns whether the specified location is contained in this polygon.

public:
 virtual bool Contains(Microsoft::Maui::Devices::Sensors::Location ^ item);
public bool Contains (Microsoft.Maui.Devices.Sensors.Location item);
abstract member Contains : Microsoft.Maui.Devices.Sensors.Location -> bool
override this.Contains : Microsoft.Maui.Devices.Sensors.Location -> bool
Public Function Contains (item As Location) As Boolean

Parameters

item
Location

The location object of which to determine if it is contained in the location collection of this polygon.

Returns

true if item is contained in the location collection of this polygon, otherwise false.

Implements

Applies to