SpreadsheetGear 2017
ActiveTabChanged Event (WorkbookView)






SpreadsheetGear.Windows.Forms Namespace > WorkbookView Class : ActiveTabChanged Event
Occurs after the active tab changes.
Syntax
'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
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.

PropertyDescription
Returns the new sheet.  
Returns the new tab index.  
Remarks

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.

Requirements

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