ITabSheet.Cell

Fore Syntax

Cell(Row: Integer; Column: Integer): ITabRange;

Fore.NET Syntax

Cell[Row: integer; Column: integer]: Prognoz.Platform.Interop.Tab.ITabRange;

Parameters

Row. Row number

Column. Column number.

Description

The Cell property returns the cell, the coordinates of which are passed as the 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 a form with the button with the Button1 identifier on it, the UiTabSheet component with the UiTabSheet1 identifier and the TabSheetBox component.

The example is the OnClick event handler for the button.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        Tab: ITabSheet;
    Begin
        Tab := UiTabSheet1.TabSheet;
        Tab.Cell(00).Value := 10;
        Tab.Cell(01).Value := 20;
    End Sub Button1OnClick;

Clicking the button the 10 and 20 values are assigned for the table cells with the coordinates 0,0 and 0,1, respectively.

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 button1_Click(sender: System.Object; e: System.EventArgs);
    Var
        Tab: ITabSheet;
    Begin
        Tab := UiTabSheetNet1.TabSheetUi.TabSheet;
        Tab.Cell[00].Value := 10;
        Tab.Cell[01].Value := 20;
    End Sub;

See also:

ITabSheet