VectorLayer.FindIndex

VectorLayer.FindIndex method

根据条件搜索 Feature 索引。

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

返回值

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

异常

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

另见