Class TreeViewCommand
Represents a control that displays a data in a tree format.
Inheritance
System.Object
TreeViewCommand
Implements
Namespace: Syncfusion.Windows.Forms.Tools.MultiColumnTreeView
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class TreeViewCommand : Object, ICommand
Constructors
TreeViewCommand(TreeNodeAdv, Action)
Initializes a new instance of the TreeViewCommand class.
Declaration
public TreeViewCommand(TreeNodeAdv node, Action action)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeNodeAdv | node | The node on which action is to be performed. |
| Action | action | The action to perform. |
TreeViewCommand(TreeNodeAdv, String)
Initializes a new instance of the TreeViewCommand class.
Declaration
public TreeViewCommand(TreeNodeAdv node, string newText)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeNodeAdv | node | The node on which action is to be performed. |
| System.String | newText | New text for the editing action. |
Properties
Action
Gets the action to be performed on the node.
Declaration
public Action Action { get; }
Property Value
| Type |
|---|
| Action |
Node
Gets the node on whom the action is to be performed.
Declaration
public TreeNodeAdv Node { get; }
Property Value
| Type |
|---|
| TreeNodeAdv |
Methods
Execute()
Executes the action to be performed.
Declaration
public void Execute()
Reverse()
Represents the reverse action on the node.
Declaration
public void Reverse()