EmulateCellPictureClick(Row: Integer; Column: Integer);
EmulateCellPictureClick(Row: integer; Column: integer);
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.
The EmulateCellPictureClick method emulates a click on the image located in the specified cell.
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:
To execute the example a form, a button named Button1 positioned on this form, the TabSheetBox component named TabSheetBox1, and a data source for TabSheetBox1 are required.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
TSheet: ITabSheet;
TView: ITabView;
Begin
TSheet := TabSheetBox1.Source.GetTabSheet;
TView := TSheet.View;
TView.EmulateCellPictureClick(0, 0);
End Sub Button1OnClick;
Clicking the button emulates a click on the image in the A0 cell.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example.
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
TSheet: TabSheet;
TView: ITabView;
Begin
TSheet := TabSheetBoxNet1.Source.GetTabSheet();
TView := TSheet.View;
TView.EmulateCellPictureClick(0, 0);
End Sub;
See also: