IWorkbookConfigurationPanel.GetActiveContext

Syntax

GetActiveContext: ISystemPadContext;

Description

The GetActiveContext method returns context of the WorkbookConfigurationPanel component.

Comments

To determine data source of the WorkbookConfigurationPanel component, use the IWorkbookConfigurationPanel.Analyzer property.

Example

Executing the example requires a form containing the WorkbookConfigurationPanel1 component with the WorkbookConfigurationPanel1 identifier and the UiErAnalyzer component with the UiErAnalyzer1 identifier. Determine the UiErAnalyzer1 component as data source for the WorkbookConfigurationPanel1 component. Use workbook as data source for the UiErAnalyzer1 component.

The example is the OnClick event handler for the form.

Sub WORKBOOKCONFIGURATIONPANELFormOnClick(Sender: Object; Args: IMouseEventArgs);
Var
    sps: ISystemPadContext;
Begin
    sps := WorkbookConfigurationPanel1.GetActiveContext;
    Debug.WriteLine(sps.SystemPadId);
End Sub WORKBOOKCONFIGURATIONPANELFormOnClick;

On clicking the form the console window displays side panel component identifier - WBDataView.

See also:

IWorkbookConfigurationPanel