ITabSheet.CellValue

Fore Syntax

CellValue(Row: Integer; Column: Integer): Variant;

Fore.NET Syntax

CellValue[Row: Integer; Column: Integer]: object;

Parameters

Row. Row number. Admissible parameter value lies within the [0; RowsCount) range.

Column. Column number. Admissible parameter value lies within the [0; ColumnsCount) range.

Description

The CellValue property sets the value of the cell, which coordinates are passed as the Row and Column input parameters.

Fore Example

Executing the example requires a form, a button on this form named Button1, the UiTabSheet component named UiTabSheet1 and the TabSheetBox component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        Tab: ITabSheet;
    Begin
        Tab := UiTabSheet1.TabSheet;
        Tab.CellValue(23) := 10;
    End Sub Button1OnClick;

Clicking the button assigns the 10 value for the cell with the coordinates 2,3.

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.CellValue[23] := 10;
    End Sub;

See also:

ITabSheet