KaxListBoxFindItem Method |
Finds the first item for which the specified predicate returns true.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax public KaxListBoxItem FindItem(
Predicate<KaxListBoxItem> predicate
)
Public Function FindItem (
predicate As Predicate(Of KaxListBoxItem)
) As KaxListBoxItem
public:
KaxListBoxItem^ FindItem(
Predicate<KaxListBoxItem^>^ predicate
)
member FindItem :
predicate : Predicate<KaxListBoxItem> -> KaxListBoxItem
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");
});
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
KaxListBox1.FindItem(AddressOf Find)
End Sub
Public Function Find(ByVal currentItem As KaxListBoxItem) As Boolean
Find = currentItem.Text.StartsWith("A")
End Function
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also