VectorLayer.FindIndex

VectorLayer.FindIndex method

根据条件搜索 Feature 索引。

public virtual int FindIndex(Func<Feature, bool> match)
参数类型描述
matchFunc`2用于搜索的谓词。

返回值

如果找到,返回匹配 match 定义条件的第一个 Feature 的零基索引;否则返回 -1。

异常

异常条件
ArgumentNullException如果谓词为 null。

另见