Spread Windows Forms 7.0 Product Documentation
SheetTab Constructor()
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetTab Class > SheetTab Constructor : SheetTab Constructor()


Glossary Item Box

Creates a new sheet name tab.

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New SheetTab()
C# 
public SheetTab()

Example

This example shows the use of this method by creating a new set of sheet tabs and changing the background color of them.
C#Copy Code
fpSpread1.Sheets.Count = 3;
fpSpread1.InterfaceRenderer = null;
fpSpread1.VisualStyles = FarPoint.Win.VisualStyles.Off;
FarPoint.Win.Spread.SheetTab st = new FarPoint.Win.Spread.SheetTab();
st = fpSpread1.TabStrip.DefaultSheetTab;
st.BackColor = Color.Red;
Visual BasicCopy Code
FpSpread1.Sheets.Count = 3
FpSpread1.InterfaceRenderer = Nothing
FpSpread1.VisualStyles = FarPoint.Win.VisualStyles.Off
Dim st As New FarPoint.Win.Spread.SheetTab
st = FpSpread1.TabStrip.DefaultSheetTab
st.BackColor = Color.Red

Requirements

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.