TreeViewEventArgs Constructors

Definition

Initializes a new instance of the TreeViewEventArgs class.

Overloads

TreeViewEventArgs(TreeNode)

Initializes a new instance of the TreeViewEventArgs class for the specified tree node.

TreeViewEventArgs(TreeNode, TreeViewAction)

Initializes a new instance of the TreeViewEventArgs class for the specified tree node and with the specified type of action that raised the event.

TreeViewEventArgs(TreeNode)

Source:
TreeViewEventArgs.cs
Source:
TreeViewEventArgs.cs
Source:
TreeViewEventArgs.cs

Initializes a new instance of the TreeViewEventArgs class for the specified tree node.

C#
public TreeViewEventArgs(System.Windows.Forms.TreeNode node);
C#
public TreeViewEventArgs(System.Windows.Forms.TreeNode? node);

Parameters

node
TreeNode

The TreeNode that the event is responding to.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

TreeViewEventArgs(TreeNode, TreeViewAction)

Source:
TreeViewEventArgs.cs
Source:
TreeViewEventArgs.cs
Source:
TreeViewEventArgs.cs

Initializes a new instance of the TreeViewEventArgs class for the specified tree node and with the specified type of action that raised the event.

C#
public TreeViewEventArgs(System.Windows.Forms.TreeNode node, System.Windows.Forms.TreeViewAction action);
C#
public TreeViewEventArgs(System.Windows.Forms.TreeNode? node, System.Windows.Forms.TreeViewAction action);

Parameters

node
TreeNode

The TreeNode that the event is responding to.

action
TreeViewAction

The type of TreeViewAction that raised the event.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9