Polygon.IndexOf(Location) 方法

定义

获取指定位置对象的索引。

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

参数

item
Location

要确定其索引的位置对象。

返回

如果未找到该位置,则指定位置的索引将返回 -1

实现

适用于