ITabView.EmulateCellPictureClick

Syntax

EmulateCellPictureClick(Row: Integer; Column: Integer);

Parameters

Row. The row containing hyperlink. Admissible parameter value lies within the [0; RowsCount) range.

Column. The column containing hyperlink. Admissible parameter value lies within the [0; ColumnsCount) range.

Description

The EmulateCellPictureClick method emulates a click on the image located in the specified cell.

Comments

On performing the method the OnCellPictureClick event is generated for the component which table is worked with. Description of the event for various components is given in the following subsections:

Example

Executing the example requires a form with the Button1 button located on it, the TabSheetBox component named TabSheetBox1, and a data source for TabSheetBox1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    TSheet: ITabSheet;
    TView: ITabView;
Begin
    TSheet := TabSheetBox1.Source.GetTabSheet;
    TView := TSheet.View;
    TView.EmulateCellPictureClick(00);
End Sub Button1OnClick;

Clicking the button emulates a click on the image in the A0 cell.

See also:

ITabView