Back to Devexpress

ShapeCollection.Find<TResult>(Func<TResult, Boolean>) Method

officefileapi-devexpress-dot-docs-dot-presentation-dot-shapecollection-dot-find-1-x28-system-dot-func-0-system-dot-boolean-x29.md

latest1.6 KB
Original Source

ShapeCollection.Find<TResult>(Func<TResult, Boolean>) Method

Finds the first occurrence of a shape that matches the specified condition.

Namespace : DevExpress.Docs.Presentation

Assembly : DevExpress.Docs.Presentation.v25.2.dll

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public TResult Find<TResult>(
    Func<TResult, bool> predicate
)
vb
Public Function Find(Of TResult)(
    predicate As Func(Of TResult, Boolean)
) As TResult

Parameters

NameTypeDescription
predicateFunc<TResult, Boolean>

A function that defines the condition of the shape to find.

|

Type Parameters

NameDescription
TResult

The type of the shape to find.

|

Returns

TypeDescription
TResult

The first shape that matches the specified condition.

|

See Also

ShapeCollection Class

ShapeCollection Members

DevExpress.Docs.Presentation Namespace