event RemoveNode (Node as Node)
Occurs when a node is removed from the nodes collection.

 TypeDescription 
   Node as Node A Node object being removed.  
The RemoveNode event notifies your application that a node is removed. Use the RemoveNode event to remove any extra data that you have associated to a node. Use the Remove method to remove a node. Use the Clear method to clear the nodes collection. Use the Nodes property to access the control's nodes collection. Use the Nodes property to access the node's child nodes collection. Use the UserData property to assign an extra data to a node.

The following VB sample displays the name of the node being removed:

Private Sub XMLGrid1_RemoveNode(ByVal Node As EXMLGRIDLibCtl.INode)
    Debug.Print Node.Name
End Sub

The following C++ sample displays the name of the node being removed:

#include "Node.h"
void OnRemoveNodeXmlgrid1(LPDISPATCH Node) 
{
	CNode node( Node ); node.m_bAutoRelease = FALSE;
	CString strName = node.GetName();
	OutputDebugString( strName );
}

The following VB.NET sample displays the name of the node being removed:

Private Sub AxXMLGrid1_RemoveNode(ByVal sender As Object, ByVal e As AxEXMLGRIDLib._IXMLGridEvents_RemoveNodeEvent) Handles AxXMLGrid1.RemoveNode
    Debug.Print(e.node.Name)
End Sub

The following C# sample displays the name of the node being removed:

private void axXMLGrid1_RemoveNode(object sender, AxEXMLGRIDLib._IXMLGridEvents_RemoveNodeEvent e)
{
	System.Diagnostics.Debug.Write(e.node.Name);
}

The following VFP sample displays the name of the node being removed:

*** ActiveX Control Event ***
LPARAMETERS node

wait window nowait node.Name


Send comments on this topic.
© 1999-2008 Exontrol Inc, Software. All rights reserved.