WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeViewCommand

    Show / Hide Table of Contents

    Class TreeViewCommand

    Represents the command of TreeView control.

    Inheritance
    System.Object
    TreeViewCommand
    Implements
    ICommand
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    Action

    Node

    Gets the node on whom the action is to be performed.

    Declaration
    public TreeNodeAdv Node { get; }
    Property Value
    Type Description
    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()

    Implements

    ICommand
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved