menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeViewCommand - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TreeViewCommand

    Represents a control that displays a data in a tree format.

    Inheritance
    System.Object
    TreeViewCommand
    Implements
    ICommand
    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.MultiColumnTreeView
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class TreeViewCommand : 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()

    Implements

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