IUiPrxFormulaIslandCancelEventArgs.Cancel

Syntax

Cancel: Boolean;

Description

The Cancel property determines whether a particular operation is to be executed for the formula area. When the property is set to True, the operation is not executed.

Example

The example considers an event that occurs before calculation of the formula area.

Sub EventOnBeforeExecuteFormulaIsland(Args: IUiPrxFormulaIslandCancelEventArgs);
Begin
    Args.Cancel := Not WinApplication.ConfirmationBox("Calculate area " + Args.FormulaIsland.Id + "?")
End Sub EventOnBeforeExecuteFormulaIsland;

When the event occurs, a dialog box to confirm calculation of the formula area, containing area identifier, is displayed. Answer Yes to calculate the formula area or No to cancel formula calculation.

See also:

IUiPrxFormulaIslandCancelEventArgs