Spread WPF Documentation
SheetTabClick Event (GcSpreadSheet)
Example 


Occurs when the user clicks the sheet tab.
Syntax
'Declaration
 
Public Event SheetTabClick As System.EventHandler(Of SheetTabClickEventArgs)
'Usage
 
Dim instance As GcSpreadSheet
Dim handler As System.EventHandler(Of SheetTabClickEventArgs)
 
AddHandler instance.SheetTabClick, handler
public event System.EventHandler<SheetTabClickEventArgs> SheetTabClick
Event Data

The event handler receives an argument of type SheetTabClickEventArgs containing data related to this event. The following SheetTabClickEventArgs properties provide information specific to this event.

PropertyDescription
SheetTabIndexGets the index of the sheet tab that is clicked.  
Example
This example uses the SheetTabClick event.
private void gcSpreadSheet1_SheetTabClick(object sender, GrapeCity.Windows.SpreadSheet.UI.SheetTabClickEventArgs e)
        {
            listBox1.Items.Add(e.SheetTabIndex.ToString());
        }

        private void gcSpreadSheet1_SheetTabDoubleClick(object sender, GrapeCity.Windows.SpreadSheet.UI.SheetTabDoubleClickEventArgs e)
        {
            listBox1.Items.Add(e.SheetTabIndex.ToString());
        }
Private Sub GcSpreadSheet1_SheetTabClick(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.SheetTabClickEventArgs) Handles GcSpreadSheet1.SheetTabClick
        ListBox1.Items.Add(e.SheetTabIndex.ToString())
    End Sub

    Private Sub GcSpreadSheet1_SheetTabDoubleClick(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.SheetTabDoubleClickEventArgs) Handles GcSpreadSheet1.SheetTabDoubleClick
        ListBox1.Items.Add(e.SheetTabIndex.ToString())
    End Sub
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.