VectorLayer.FindIndex
VectorLayer.FindIndex method
根据条件搜索 Feature 索引。
public virtual int FindIndex(Func<Feature, bool> match)
| 参数 | 类型 | 描述 |
|---|---|---|
| match | Func`2 | 用于搜索的谓词。 |
返回值
如果找到,返回匹配 match 定义条件的第一个 Feature 的零基索引;否则返回 -1。
异常
| 异常 | 条件 |
|---|---|
| ArgumentNullException | 如果谓词为 null。 |
另见
- class Feature
- class VectorLayer
- namespace Aspose.Gis
- assembly Aspose.GIS