IndexOf
IShapeCollection.IndexOf 方法
返回集合中形状首次出现的零基索引。
public int IndexOf(IShape shape)
参数 | 类型 | 描述 |
---|---|---|
shape | IShape | 要在集合中定位的形状。 |
返回值
如果找到,返回集合中形状首次出现的零基索引;否则返回 -1。
相关链接
- 接口 IShape
- 接口 IShapeCollection
- 命名空间 Aspose.Slides
- 程序集 Aspose.Slides
返回集合中形状首次出现的零基索引。
public int IndexOf(IShape shape)
参数 | 类型 | 描述 |
---|---|---|
shape | IShape | 要在集合中定位的形状。 |
如果找到,返回集合中形状首次出现的零基索引;否则返回 -1。