KaxNavigationItemCollectionFindItem Method |
Returns the first KaxNavigationItem
that matches the conditions defined by the specified predicate.
The predicate should returns a boolean value.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic KaxNavigationItem FindItem(
Predicate<KaxNavigationItem> match
)
Public Function FindItem (
match As Predicate(Of KaxNavigationItem)
) As KaxNavigationItem
public:
KaxNavigationItem^ FindItem(
Predicate<KaxNavigationItem^>^ match
)
member FindItem :
match : Predicate<KaxNavigationItem> -> KaxNavigationItem
Parameters
- match
- Type: SystemPredicateKaxNavigationItem
The Predicate <> that defines the conditions of the element to search for.
Return Value
Type:
KaxNavigationItem
Examples
The following example demonstrates how to use the
FindItem method.
void Page_Load(object sender, EventArgs e)
{
KaxPanel1.FindItem(ItemWithEqualsTextAndValue);
}
private static bool ItemWithEqualsTextAndValue(KaxNavigationItem item)
{
if (item.Text == item.Value)
{
return true;
}
else
{
return false;
}
}
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
KaxPanel1.FindItem(ItemWithEqualsTextAndValue)
End Sub
Private Shared Function ItemWithEqualsTextAndValue(ByVal item As KaxNavigationItem) As Boolean
If item.Text = item.Value Then
Return True
Else
Return False
End If
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