CellAddress(Row: Integer; Column: Integer): String;
Row. Row number.
Column. Column number.
The CellAddress property returns the address of the cell, the coordinates of which are passed as Row and Column input parameters.
The available value of the Row parameter is within the range [0; RowsCount). The available value of the Column parameter is within the range [0; ColumnsCount).
Executing the example requires this procedure is set as the OnCellClick event handler for the TabSheetBox component with the TabSheetBox1 identifier.
Sub TabSheetBox1OnCellClick(Sender: Object; Args: ITabCellEventArgs);
Var
TSheet: ITabSheet;
Begin
TSheet := Args.TabSheet.Source.GetTabSheet;
Debug.WriteLine(TSheet.CellAddress(Args.Row, Args.Column));
End Sub TabSheetBox1OnCellClick;
After executing the example, clicking the table cell opens the selected cell address in the console.
See also: