IsOptionSwitchedOn(Operation: LanerBoxOperation): Boolean;
Operation. Operation executed with a workbook.
The IsOptionSwitchedOn method indicates whether the specified operation is applied in the workbook.
The method is applied for the following operations:
For multidimensional workbook mode:
LanerBoxOperation.Pareto. Pareto analysis.
LanerBoxOperation.Filter. Empty cells filter.
LanerBoxOperation.Colorer. Highlight cells.
For the series mode of the workbook:
LanerBoxOperation.PinSelectedCalcSerie. Fix calculated series.
Available values:
True. Operation is applied in the workbook.
False. Operation is not used in the workbook.
Executing the example requires a form with a button named Button1 on the form, the LanerBox component named LanerBox1, and the UiErAnalyzer component used as a data source for LanerBox. The workbook of the time series database should be loaded to UiErAnalyzer in multidimensional mode.
This procedure should be assigned as a handler of the OnClick event for the button. The example is executed on clicking the button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
If Not LanerBox1.IsOptionSwitchedOn(LanerBoxOperation.Pareto) Then
LanerBox1.ExecuteOperation(LanerBoxOperation.Pareto);
End If;
End Sub Button1OnClick;
After executing the example Pareto analysis is applied to the workbook displayed in LanerBox.
See also: