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
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
#Declaration
public List<SvgImageItem> FindDescendants(
Predicate<SvgImageItem> predicate
)
#Parameters
Name | Type | Description |
---|---|---|
predicate | Predicate<Svg |
The search condition. |
#Returns
Type | Description |
---|---|
List<Svg |
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();
}
FindDescendants(Predicate<SvgImageItem>)