

| Type | Description | |||
| Boolean | A boolean expression that indicates whether the node is selected. |
The following VB sample selects the node over the cursor as soon as the user moves the cursor over the control:
Private Sub XMLGrid1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
With XMLGrid1
Dim n As EXMLGRIDLibCtl.Node
Set n = .NodeFromPoint(X / Screen.TwipsPerPixelX, Y / Screen.TwipsPerPixelY)
If Not n Is Nothing Then
n.Selected = True
End If
End With
End Sub
The following C++ sample selects the node over the cursor as soon as the user moves the cursor over the control:
#include "Node.h"
void OnMouseMoveXmlgrid1(short Button, short Shift, long X, long Y)
{
CNode node = m_xmlgrid.GetNodeFromPoint( X, Y );
if ( node.m_lpDispatch != NULL )
node.SetSelected( TRUE );
}
The following VB.NET sample selects the node over the cursor as soon as the user moves the cursor over the control:
Private Sub AxXMLGrid1_MouseMoveEvent(ByVal sender As Object, ByVal e As AxEXMLGRIDLib._IXMLGridEvents_MouseMoveEvent) Handles AxXMLGrid1.MouseMoveEvent
With AxXMLGrid1
Dim n As EXMLGRIDLib.Node = .get_NodeFromPoint(e.x, e.y)
If Not n Is Nothing Then
n.Selected = True
End If
End With
End Sub
The following C# sample selects the node over the cursor as soon as the user moves the cursor over the control:
private void axXMLGrid1_MouseMoveEvent(object sender, AxEXMLGRIDLib._IXMLGridEvents_MouseMoveEvent e)
{
EXMLGRIDLib.Node node = axXMLGrid1.get_NodeFromPoint(e.x, e.y);
if (node != null)
node.Selected = true;
}
The following VFP sample selects the node over the cursor as soon as the user moves the cursor over the control:
*** ActiveX Control Event *** LPARAMETERS button, shift, x, y with thisform.XMLGrid1 n = .NodeFromPoint(x, y ) if ( !isnull(n) ) n.Selected = .t. endif endwith