ITabSheet.CellAddress

Fore Syntax

CellAddress(Row: Integer; Column: Integer): String;

Fore.NET Syntax

CellAddress[Row: integer; Column: integer]: string;

Parameters

Row. Row number.

Column. Column number.

Description

The CellAddress property returns the address of the cell, the coordinates of which are passed as Row and Column input parameters.

Comments

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).

Fore Example

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.

Fore.NET Example

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:

ITabSheet