ReadOnlyLinkedElementCollection<T>.FindIndex(Predicate<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.