TreeNodeEventArgs Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

System.Object
  System.EventArgs
    System.Web.UI.WebControls.TreeNodeEventArgs

[<Sealed>]
type TreeNodeEventArgs = 
    class
        inherit EventArgs
    end

NameDescription
System_CAPS_pubmethodTreeNodeEventArgs(TreeNode)

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

NameDescription
System_CAPS_pubpropertyNode

Gets the node that raised the event.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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 handling events, see NIB: Consuming Events.

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

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: