KaxSiteMapNodeCollectionFindNode Method |
Returns the first KaxSiteMapNode
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)
Syntax public KaxSiteMapNode FindNode(
Predicate<KaxSiteMapNode> match
)
Public Function FindNode (
match As Predicate(Of KaxSiteMapNode)
) As KaxSiteMapNode
public:
KaxSiteMapNode^ FindNode(
Predicate<KaxSiteMapNode^>^ match
)
member FindNode :
match : Predicate<KaxSiteMapNode> -> KaxSiteMapNode
Parameters
- match
- Type: SystemPredicateKaxSiteMapNode
The Predicate <KaxSiteMapNode> that defines the conditions of the element to search for.
Return Value
Type:
KaxSiteMapNodeExamples
The following example demonstrates how to use the
FindNode method.
void Page_Load(object sender, EventArgs e)
{
KaxSiteMap1.FindNode(NodeWithEqualsTextAndValue);
}
private static bool NodeWithEqualsTextAndValue(KaxSiteMapNode node)
{
if (node.Text == node.Value)
{
return true;
}
else
{
return false;
}
}
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
KaxSiteMap1.FindNode(NodeWithEqualsTextAndValue)
End Sub
Private Shared Function NodeWithEqualsTextAndValue(ByVal node As KaxSiteMapNode) As Boolean
If node.Text = node.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