Polygon.IndexOf(Location) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定位置对象的索引。
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
。