Sdílet prostřednictvím


Polygon.IndexOf(Location) Metoda

Definice

Získá index zadaného objektu umístění.

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

Parametry

item
Location

Objekt umístění, jehož účelem je určit index.

Návraty

Index zadaného umístění, pokud umístění nebylo nalezeno, vrátí -1se .

Implementuje

Platí pro