FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : ActiveSheetChanging Event |
'Declaration Public Event ActiveSheetChanging As ActiveSheetChangingEventHandler
'Usage Dim instance As FpSpread Dim handler As ActiveSheetChangingEventHandler AddHandler instance.ActiveSheetChanging, handler
public event ActiveSheetChangingEventHandler ActiveSheetChanging
The event handler receives an argument of type ActiveSheetChangingEventArgs containing data related to this event. The following ActiveSheetChangingEventArgs properties provide information specific to this event.
Property | Description |
---|---|
ActivatedSheetIndex | Gets or sets the index of the new active sheet. |
Cancel | Gets or sets whether to cancel the active sheet change. |
This event is raised by the OnActiveSheetChanging method when the user is changing the active sheet.
For more details on the individual event arguments, refer to ActiveSheetChangingEventArgs members.
fpSpread1.Sheets.Count = 3; fpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always; private void fpSpread1_ActiveSheetChanged(object sender, System.EventArgs e) { ListBox1.Items.Add("Active Sheet Changing."); }
FpSpread1.Sheets.Count = 3 FpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always Private Sub FpSpread1_ActiveSheetChanging(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ActiveSheetChangingEventArgs) Handles FpSpread1.ActiveSheetChanging ListBox1.Items.Add("Active Sheet Changing.") End Sub
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10