SpreadsheetGear.Windows.Controls Namespace > WorkbookView Class : ActiveTabChanged Event |
'Declaration
<System.ComponentModel.CategoryAttribute("Action")> <System.ComponentModel.DescriptionAttribute("Occurs when the active tab changes.")> Public Event ActiveTabChanged As ActiveTabChangedEventHandler
'Usage
Dim instance As WorkbookView Dim handler As ActiveTabChangedEventHandler AddHandler instance.ActiveTabChanged, handler
[System.ComponentModel.Category("Action")] [System.ComponentModel.Description("Occurs when the active tab changes.")] public event ActiveTabChangedEventHandler ActiveTabChanged
public event ActiveTabChanged: ActiveTabChangedEventHandler;
In JScript, you can handle the events defined by another class, but you cannot define your own.
[System.ComponentModel.Category("Action")] [System.ComponentModel.Description("Occurs when the active tab changes.")] public: __event ActiveTabChangedEventHandler* ActiveTabChanged
[System.ComponentModel.Category("Action")] [System.ComponentModel.Description("Occurs when the active tab changes.")] public: event ActiveTabChangedEventHandler^ ActiveTabChanged
The event handler receives an argument of type ActiveTabChangedEventArgs containing data related to this event. The following ActiveTabChangedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Sheet | Returns the new sheet. |
TabIndex | Returns the new tab index. |
The ActiveTabChanged event is always invoked on the thread which created the workbook view control, and a lock is always acquired on the workbook set associated with the workbook view control before ActiveTabChanged is invoked.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2