Spread Windows Forms 12.0 Product Documentation
SheetTab Constructor(Control,Color,Color,Font)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetTab Class > SheetTab Constructor : SheetTab Constructor(Control,Color,Color,Font)
Control that owns the new sheet tab (SheetTab object)
Background color of the sheet tab
Text color of the sheet tab
Text font of the sheet tab
Creates a new sheet name tab for the specified control with the specified appearance settings.
Syntax
'Declaration
 
Public Function New( _
   ByVal owner As Control, _
   ByVal backColor As Color, _
   ByVal foreColor As Color, _
   ByVal font As Font _
)
'Usage
 
Dim owner As Control
Dim backColor As Color
Dim foreColor As Color
Dim font As Font
 
Dim instance As New SheetTab(owner, backColor, foreColor, font)
public SheetTab( 
   Control owner,
   Color backColor,
   Color foreColor,
   Font font
)

Parameters

owner
Control that owns the new sheet tab (SheetTab object)
backColor
Background color of the sheet tab
foreColor
Text color of the sheet tab
font
Text font of the sheet tab
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, Color.Yellow, Color.Blue, new Font("Comic Sans
MS", 10));
fpSpread1.TabStrip.DefaultSheetTab.BackColor = st.BackColor;
fpSpread1.TabStrip.DefaultSheetTab.ForeColor = st.ForeColor;
fpSpread1.TabStrip.DefaultSheetTab.Font = st.Font;
fpSpread1.TabStrip.DefaultSheetTab.Size = 60;
FpSpread1.Sheets.Count = 3
FpSpread1.InterfaceRenderer = Nothing
FpSpread1.VisualStyles = FarPoint.Win.VisualStyles.Off
Dim st As New FarPoint.Win.Spread.SheetTab(FpSpread1, Color.Yellow, Color.Blue, New Font("Comic Sans MS", 10))
FpSpread1.TabStrip.DefaultSheetTab.BackColor = st.BackColor
FpSpread1.TabStrip.DefaultSheetTab.ForeColor = st.ForeColor
FpSpread1.TabStrip.DefaultSheetTab.Font = st.Font
FpSpread1.TabStrip.DefaultSheetTab.Size = 60
See Also

Reference

SheetTab Class
SheetTab Members
Overload List