Skip to main content

SvgImageItem.FindDescendants(Predicate<SvgImageItem>) Method

Returns a list of the item’s descendants that match the specified condition.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.2.dll

Declaration

public List<SvgImageItem> FindDescendants(
    Predicate<SvgImageItem> predicate
)

Parameters

Name Type Description
predicate Predicate<SvgImageItem>

The search condition.

Returns

Type Description
List<SvgImageItem>

The list that contains found items.

Remarks

Example

The following code locates the hovered item’s descendant, whose ID starts with the “pressed” sub-string.

if (svgImageBox1.HoveredItem != null) {
    SvgImageItem item3 = svgImageBox1.HoveredItem.FindDescendants(i => i.Id != null && i.Id.StartsWith("pressed")).FirstOrDefault();
}
See Also