ITabCellEventArgs.Column

Syntax

Column: Integer;

Description

The Column property returns the number of the column, that contains the table cell, that generated the OnCellClick, OnHyperlinkClick or OnCellPictureClick events of the TabSheetBox component.

Example

Executing the example requires a form. The form should contain the TabSheetBox component and the UiTabSheet component named UiTabSheet1. UiTabSheet1 is the data source for the TabSheetBox component. This procedure is used as the handler of the OnCellClick event.

Sub TabSheetBox1OnCellClick(Sender: Object; Args: ITabCellEventArgs);

Var

i,j: Integer;

Begin

i := Args.Row;

j := Args.Column;

End Sub TabSheetBox1OnCellClick;

After the event has occurred, the variable "i" will contain the number of the row, and the variable "j" will contain the number of the column where the clicked cell is located.

See also:

ITabCellEventArgs