Click or drag to resize
KaxListBoxFindItem Method
Finds the first item for which the specified predicate returns true.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public KaxListBoxItem FindItem(
	Predicate<KaxListBoxItem> predicate
)

Parameters

predicate
Type: SystemPredicateKaxListBoxItem
The predicate which will test all items.

Return Value

Type: KaxListBoxItem
The first item for which the specified predicate returns true. Null (Nothing) is returned if no item matches.
Examples
The following example demonstrates how to use the FindItem method to find the first item whose Text starts with "A"
KaxListBoxItem item = KaxListBox1.FindItem(delegate(KaxListBoxItem currentItem) {
    return currentItem.Text.StartsWith("A");
});
See Also