Spread Windows Forms 6.0 Product Documentation
ForeColor Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetTab Class : ForeColor Property


Glossary Item Box

Gets or sets the foreground color (text color) for the sheet name tab.

Syntax

Visual Basic (Declaration) 
Public Property ForeColor As Color
Visual Basic (Usage)Copy Code
Dim instance As SheetTab
Dim value As Color
 
instance.ForeColor = value
 
value = instance.ForeColor
C# 
public Color ForeColor {get; set;}

Property Value

Color object containing the text color of the sheet tab

Example

This example changes the foreground color of the active sheet tab.
C#Copy Code
fpSpread1.InterfaceRenderer = null;
fpSpread1.VisualStyles = FarPoint.Win.VisualStyles.Off;
FarPoint.Win.Spread.SheetTab st; 
st = fpSpread1.TabStrip.ActiveSheetTab; 
st.ForeColor = Color.Red; 
Visual BasicCopy Code
FpSpread1.InterfaceRenderer = Nothing
FpSpread1.VisualStyles = FarPoint.Win.VisualStyles.Off
Dim st As FarPoint.Win.Spread.SheetTab
st = FpSpread1.TabStrip.ActiveSheetTab
st.ForeColor = 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.