ESRI.ArcGIS.ADF.Web.UI.WebControls
FindByValue Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > TreeViewPlusNodeCollection Class : FindByValue Method




value
The value to find in the node collection.
Finds the first node in the collection with the Value that matches the input value.

Syntax

Visual Basic (Declaration) 
Public Function FindByValue( _
   ByVal value As String _
) As TreeViewPlusNode
Visual Basic (Usage)Copy Code
Dim instance As TreeViewPlusNodeCollection
Dim value As String
Dim value As TreeViewPlusNode
 
value = instance.FindByValue(value)
C# 
public TreeViewPlusNode FindByValue( 
   string value
)

Parameters

value
The value to find in the node collection.

Return Value

Node with the Value matching the input value, or null (Nothing) if no match found.

Remarks

Each TreeViewPlusNode has a Value property that identifies it among other nodes in the collection. This method searches the node collection for a matching value. It searches the children of the nodes, if any, if the immediate nodes have no match. The first matching node is returned. For example, if two child nodes have ValuePaths of Layer1/Field1 and Layer2/Field1, and Layer1 is the first node in the current collection, then the Layer1/Field1 node will be returned.

See Also

© 2010 All Rights Reserved.