TreeViewExtensionsGetAllNodes Method
Gets all the nodes and all its child nodes in the source TreeView.
Namespace: DevCase.Extensions.TreeViewExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static List<TreeNode> GetAllNodes(
this TreeView sender
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function GetAllNodes (
sender As TreeView
) As List(Of TreeNode)
Dim sender As TreeView
Dim returnValue As List(Of TreeNode)
returnValue = sender.GetAllNodes()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static List<TreeNode^>^ GetAllNodes(
TreeView^ sender
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member GetAllNodes :
sender : TreeView -> List<TreeNode>
No code example is currently available or this language may not be supported.
- sender TreeView
-
The source TreeView.
ListTreeNode
A
ListT containing all the parent nodes and all its child nodes.
In Visual Basic and C#, you can call this method as an instance method on any object of type
TreeView. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Dim nodeList As List(Of TreeNode) = Me.TreeView1.GetAllNodes()
For Each node As TreeNode In nodeList
' ...
Next node
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.
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.