ShowFormulaWizard(Wnd: IWin32Window; Range: ITabRange);
Wnd. The window according to which the formula wizard opens.
Range. A table cell or cell range, for which the formula wizard window opens.
The ShowFormulaWizard method calls the formula wizard dialog box for a cell range.
The window of formula wizard is modal.
Executing the example requires a form, a button with the Button1 identifier located on it, the TabSheetBox component with the TabSheetBox1 identifier, and a data source for TabSheetBox. Add a link to the Tab system assembly.
The example is a handler of the Button1OnClick event for the Button1 button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var Sheet: ITabSheet;
View: ITabView;
Range: ITabRange;
Begin
Sheet := TabSheetBox1.Source.GetTabSheet;
View := Sheet.View;
View.ShowFormulaWizard(Self As IWin32Window, Range);
End Sub Button1OnClick;
After executing the example, clicking the button opens the formula wizard window.
See also: