Express > Express Assembly Interfaces > IWorkbookConfigurationPanel > IWorkbookConfigurationPanel.GetActiveContext
GetActiveContext: ISystemPadContext;
The GetActiveContext method returns context of the WorkbookConfigurationPanel component.
To determine a data source of the WorkbookConfigurationPanel component, use the IWorkbookConfigurationPanel.Analyzer property.
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: