ISurfaceNearestTool.SelectedCell
ISurfaceNearestTool
property SelectedCell: Integer;
Type Library
TeeChartx
Description
Returns the index of the cell under the mouse cursor.
Example:-
Private Sub TChart1_OnSurfaceNearestToolSelectCell()
Dim tmp As Integer
Dim tmpRow, tmpCol As Double
tmp = TChart1.Tools.Items(0).asSurfaceNearest.SelectedCell
If tmp = -1 Then
Label1.Caption = ""
Else
tmpRow = TChart1.Tools.Items(0).asSurfaceNearest.GetRow
tmpCol = TChart1.Tools.Items(0).asSurfaceNearest.GetCol
Label1.Caption = "Row: " & tmpRow & " Column: " & tmpCol
End If
End Sub