ITabCellContentChangeEventArgs.Cancel

Syntax

Cancel: Boolean;

Description

The Cancel property determines whether the changes, made to table cell contents, should be cancelled. If the value of this property is True, the changes made to the table cell contents are to be cancelled. By default the value of the Cancel property is False.

Example

Executing the example requires this procedure is set as the OnChangeCellContent event handler (changing content of a table cell) for the TabSheetBox component named TabSheetBox1.

Sub TabSheetBox1OnChangeCellContent(Sender: Object; Args: ITabCellContentChangeEventArgs);

Begin

Args.Cancel := True;

End Sub TabSheetBox1OnChangeCellContent;

As a result, the changes, made to the table cell contents, will be cancelled. Thus, editing the table values will be impossible.

See also:

ITabCellContentChangeEventArgs