property Chart.LinkFromPoint (X as OLE_XPOS_PIXELS, Y as OLE_YPOS_PIXELS) as Variant
Retrieves the link from the point.

TypeDescription
X as OLE_XPOS_PIXELS A single that specifies the current X location of the mouse pointer. The x values is always expressed in client coordinates.
Y as OLE_YPOS_PIXELS A single that specifies the current Y location of the mouse pointer. The y values is always expressed in client coordinates.
Variant A VARIANT expression that indicates the key of the link from the cursor, or empty if no link at cursor.
The LinkFromPoint property gets the link from point. If the X parameter is -1 and Y parameter is -1 the LinkFromPoint property determines the key of the link from the cursor. Use the Link property to access properties of the link. Use the ItemFromPoint property to get the cell/item from the cursor. Use the ColumnFromPoint property to retrieve the column from cursor. Use the FormateDate property to format a date. Use the DrawDateTicker property to draw a ticker as cursor hovers the chart's area. Use the BarFromPoint property to get the bar from the point.

The following VB sample displays the key of the link from the cursor:

Private Sub Gantt1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    With Gantt1.Chart
        Debug.Print .LinkFromPoint(-1, -1)
    End With
End Sub