Freigeben über


ReadOnlyLinkedElementCollection<T>.FindIndex(Predicate<T>) Method

Definition

Finds first element which satisfies a given condition.

public:
 int FindIndex(Predicate<T> ^ match);
public int FindIndex (Predicate<T> match);
member this.FindIndex : Predicate<'T (requires 'T :> Microsoft.VisualStudio.Modeling.ModelElement)> -> int
Public Function FindIndex (match As Predicate(Of T)) As Integer

Parameters

match
Predicate<T>

Condition.

Returns

First element in the list for which the predicate returns true or null if none found.

Applies to