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

The available value of the Row parameter is in the range [0, RowsCount).

The available value of the Column parameter is in the range [0, ColumnsCount).

Example

Executing the example requires that the repository contains a form, a button on the form named Button1, the TabSheetBox component named TabSheetBox1 and the UiTabSheet component named UiTabSheet1 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