IndexOf

IShapeCollection.IndexOf 方法

返回集合中形状首次出现的零基索引。

public int IndexOf(IShape shape)
参数类型描述
shapeIShape要在集合中定位的形状。

返回值

如果找到,返回集合中形状首次出现的零基索引;否则返回 -1。

相关链接