Show contents 

Express > Express Assembly Interfaces > IWorkbookConfigurationPanel > IWorkbookConfigurationPanel.GetActiveContext

IWorkbookConfigurationPanel.GetActiveContext

Syntax

GetActiveContext: ISystemPadContext;

Description

The GetActiveContext method returns context of the WorkbookConfigurationPanel component.

Comments

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

Example

Executing the example requires a form containing the WorkbookConfigurationPanel component named WorkbookConfigurationPanel1 and the UiErAnalyzer component named UiErAnalyzer1. Determine the UiErAnalyzer1 component as data source for the WorkbookConfigurationPanel1 component. Use workbook as a 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