CellAddress(Row: Integer; Column: Integer): String;
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 that this procedure should be 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.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example. Use Fore.NET analogs instead of Fore components.
Imports Prognoz.Platform.Interop.Tab;
Private Sub tabSheetBoxNet1_OnCellClick(Sender: System.Object; Args: Prognoz.Platform.Interop.Tab.TabCellEventArgs);
Var
TSheet: ITabSheet;
Begin
TSheet := UiTabSheet1Net.TabSheet;
Debug.WriteLine(TSheet.CellAddress(Args.Row, Args.Column));
End Sub;
See also: