VectorLayer.FindIndex

VectorLayer.FindIndex method

Searching for a Feature index according to the condition.

public virtual int FindIndex(Func<Feature, bool> match)
ParameterTypeDescription
matchFunc`2Predicate for search.

Return Value

The zero-based index of the first occurrence of an Feature that matches the conditions defined by match, if found; otherwise, -1.

Exceptions

exceptioncondition
ArgumentNullExceptionIf predicate is null.

See Also