Class TreeViewCommand
Represents the command of TreeView control.
Inheritance
System.Object
TreeViewCommand
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class TreeViewCommand : ICommand
Constructors
TreeViewCommand(TreeNodeAdv, Action)
Initialize a new instance of the TreeViewCommand class for the node's action.
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)
Initialize a new instance of the TreeViewCommand class for the node's Text editing action.
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()
Performs the reverse action on the node.
Declaration
public void Reverse()