Back to Devexpress

SvgImageBox.FindItems(Predicate<SvgImageItem>) Method

windowsforms-devexpress-dot-xtraeditors-dot-svgimagebox-dot-finditems-x28-system-dot-predicate-devexpress-dot-xtraeditors-dot-svgimageitem-x29.md

latest3.7 KB
Original Source

SvgImageBox.FindItems(Predicate<SvgImageItem>) Method

Returns a list of items that match the specified condition.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public List<SvgImageItem> FindItems(
    Predicate<SvgImageItem> predicate
)
vb
Public Function FindItems(
    predicate As Predicate(Of SvgImageItem)
) As List(Of SvgImageItem)

Parameters

NameTypeDescription
predicatePredicate<SvgImageItem>

The search condition.

|

Returns

TypeDescription
List<SvgImageItem>

The list that contains found items.

|

Remarks

Example

The following code searches for items whose IDs start with the “background_pressed” sub-string and then hides these items.

csharp
var items = svgImageBox1.FindItems(item => item.Id != null && item.Id.StartsWith("background_pressed"));
items.ForEach(item => item.Visible = false);
vb
Dim items = SvgImageBox1.FindItems(Function(item) item.Id IsNot Nothing AndAlso item.Id.StartsWith("background_pressed"))
items.ForEach(Sub(item) item.Visible = False)

See Also

RootItems

Items

Parent

Root

Descendants

FindItemById(String)

FindItemByTag(Object)

FindItem(Predicate<SvgImageItem>)

FindItems(Predicate<SvgImageItem>)

FindAncestorById(String)

FindAncestorByTag(Object)

FindAncestors(Predicate<SvgImageItem>)

FindDescendantById(String)

FindDescendantByTag(Object)

FindDescendants(Predicate<SvgImageItem>)

SvgImageBox Class

SvgImageBox Members

DevExpress.XtraEditors Namespace