Spread Windows Forms 9.0 Product Documentation
SheetTab Constructor(Control)
Example 


Control that owns the new sheet tab (SheetTab object)
Creates a new sheet name tab for the specified control.
Syntax
'Declaration
 
Public Function New( _
   ByVal owner As Control _
)
'Usage
 
Dim owner As Control
 
Dim instance As New SheetTab(owner)
public SheetTab( 
   Control owner
)

Parameters

owner
Control that owns the new sheet tab (SheetTab object)
Example
This example shows the use of this method by creating a new set of sheet tabs and changing the background color of them.
fpSpread1.Sheets.Count = 3;
fpSpread1.InterfaceRenderer = null;
fpSpread1.VisualStyles = FarPoint.Win.VisualStyles.Off;
FarPoint.Win.Spread.SheetTab st = new FarPoint.Win.Spread.SheetTab(fpSpread1);
st = fpSpread1.TabStrip.DefaultSheetTab;
st.BackColor = Color.Red;
FpSpread1.Sheets.Count = 3
FpSpread1.InterfaceRenderer = Nothing
FpSpread1.VisualStyles = FarPoint.Win.VisualStyles.Off
Dim st As New FarPoint.Win.Spread.SheetTab(FpSpread1)
st = FpSpread1.TabStrip.DefaultSheetTab
st.BackColor = Color.Red
Requirements

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

See Also

Reference

SheetTab Class
SheetTab Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.