Share via


Polyline.IndexOf(Location) Method

Definition

Gets the index of a specified location object.

public:
 virtual int IndexOf(Microsoft::Maui::Devices::Sensors::Location ^ item);
public int IndexOf (Microsoft.Maui.Devices.Sensors.Location item);
abstract member IndexOf : Microsoft.Maui.Devices.Sensors.Location -> int
override this.IndexOf : Microsoft.Maui.Devices.Sensors.Location -> int
Public Function IndexOf (item As Location) As Integer

Parameters

item
Location

The location object of which to determine the index.

Returns

The index of the specified location, if the location was not found this will return -1.

Implements

Applies to