Back to Devexpress

TreeListView.DeleteNode(TreeListNode, Boolean) Method

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-dot-deletenode-x28-devexpress-dot-xpf-dot-grid-dot-treelistnode-system-dot-boolean-x29.md

latest1.5 KB
Original Source

TreeListView.DeleteNode(TreeListNode, Boolean) Method

Removes the specified node and optionally, all its children.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public void DeleteNode(
    TreeListNode node,
    bool deleteChildren
)
vb
Public Sub DeleteNode(
    node As TreeListNode,
    deleteChildren As Boolean
)

Parameters

NameTypeDescription
nodeTreeListNode

A TreeListNode object that is the node to remove.

| | deleteChildren | Boolean |

true to remove all child nodes; otherwise, false.

|

Remarks

If the deleteChildren parameter is set to false , child nodes are moved to the Root.

See Also

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace