A newer version of this page is available. Switch to the current version.

DXCollectionBase<T>.Find(Predicate<T>) Method

Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire DXCollectionBase<T>.

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v19.2.dll

Declaration

public T Find(
    Predicate<T> match
)
Public Function Find(
    match As Predicate(Of T)
) As T

Parameters

Name Type Description
match Predicate<T>

The Predicate<T> delegate that defines the conditions of the element to search for.

Returns

Type Description
T

The first element that matches the conditions defined by the specified predicate, if found; otherwise, the default value for type T.

See Also