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


owner
Control that owns the new sheet tab (SheetTab object)

Glossary Item Box

Creates a new sheet name tab for the specified control.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal owner As Control _
)
Visual Basic (Usage)Copy Code
Dim owner As Control
 
Dim instance As New SheetTab(owner)
C# 
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.
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(fpSpread1);
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(FpSpread1)
st = FpSpread1.TabStrip.DefaultSheetTab
st.BackColor = Color.Red

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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