ITabSheet.CellValue

Syntax

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

Parameters

Row. Row number

Column. Column number.

Description

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

Comments

Allowed value of the Row parameter is in the [0; RowsCount) range.

Allowed value of the Column parameter is in the [0; ColumnsCount) range.

Example

Executing the example requires that the repository contains a form with the Button button named Button1 on the form, the TabSheetBox component named TabsheetBox1, and the UiTabSheet component that is a data source for TabSheetBox1.

The example is a handler of the OnClick event for the button.

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.

See also:

ITabSheet