SpreadsheetGear 2017
ActiveTabChanged Event (WorkbookView)

SpreadsheetGear.Windows.Forms Namespace > WorkbookView Class : ActiveTabChanged Event
Occurs after the active tab changes.
<System.ComponentModel.DescriptionAttribute("Occurs when the active tab changes.")>
Public Event ActiveTabChanged As ActiveTabChangedEventHandler
Dim instance As WorkbookView
Dim handler As ActiveTabChangedEventHandler
AddHandler instance.ActiveTabChanged, handler
[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.Description("Occurs when the active tab changes.")]
public: __event ActiveTabChangedEventHandler* ActiveTabChanged
[System.ComponentModel.Description("Occurs when the active tab changes.")]
event ActiveTabChangedEventHandler^ ActiveTabChanged
Event Data

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.

Returns the new sheet.  
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

See Also