Language

TreeNodeEventArgs Class

Definition

Provides data for the TreeNodeCheckChanged, TreeNodeCollapsed, TreeNodeDataBound, TreeNodeExpanded, and TreeNodePopulate events of the TreeView control. This class cannot be inherited.

public ref class TreeNodeEventArgs sealed : EventArgs
public sealed class TreeNodeEventArgs : EventArgs
type TreeNodeEventArgs = class
    inherit EventArgs
Public NotInheritable Class TreeNodeEventArgs
Inherits EventArgs
Inheritance
TreeNodeEventArgs

Examples

The following code example demonstrates how to populate a node dynamically using the TreeNodeEventArgs object that is passed to the event-handling method.


<%@ Page Language="C#" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>





  
    TreeView PopulateNodesFromClient Example


    

TreeView PopulateNodesFromClient Example




<%@ Page Language="VB" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>





  
    TreeView PopulateNodesFromClient Example


    

TreeView PopulateNodesFromClient Example



Remarks

The TreeNodeEventArgs class is used to store the event data that is passed to an event-handling method.

For a list of the initial property values for an instance of the TreeNodeEventArgs class, see TreeNodeEventArgs(TreeNode).

For more information about how to handle events, see Handling and Raising Events.

Constructors

Name Description
TreeNodeEventArgs(TreeNode)

Initializes a new instance of the TreeNodeEventArgs class using the specified TreeNode object.

Properties

Name Description
Node

Gets the node that raised the event.

Methods

Name Description
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also