Polygon.Contains(Location) Method
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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.