Spread Windows Forms 7.0 Product Documentation
ResetForeColor Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > GroupBarInfo Class : ResetForeColor Method


Glossary Item Box

Resets the ForeColor property to its default value.

Syntax

Visual Basic (Declaration) 
Public Sub ResetForeColor() 
Visual Basic (Usage)Copy Code
Dim instance As GroupBarInfo
 
instance.ResetForeColor()
C# 
public void ResetForeColor()

Example

This example sets methods in the GroupBarInfo class.
C#Copy Code
private void Form1_Load(object sender, EventArgs e)
        {
        fpSpread1.Sheets.Count = 2;
        FarPoint.Win.Spread.GroupBarInfo test = new FarPoint.Win.Spread.GroupBarInfo();
        test.BackColor = Color.Aquamarine;
        test.ForeColor = Color.DarkMagenta;
        test.Visible = true;
        test.Text = "Group Bar";
        test.Font = new Font("Tahama", 10.0F, FontStyle.Bold | FontStyle.Underline);
        fpSpread1.Sheets[0].GroupBarInfo = test;
        fpSpread1.AllowColumnMove = true;
        fpSpread1.Sheets[0].AllowGroup = true;           
        }

private void button1_Click(object sender, EventArgs e)
        {
        fpSpread1.Sheets[0].GroupBarInfo.ResetFont();
        fpSpread1.Sheets[0].GroupBarInfo.ResetBackColor();
        fpSpread1.Sheets[0].GroupBarInfo.ResetForeColor();
        }
Visual BasicCopy Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        FpSpread1.Sheets.Count = 2
        Dim test As New FarPoint.Win.Spread.GroupBarInfo
        test.BackColor = Color.Aquamarine
        test.ForeColor = Color.DarkMagenta
        test.Visible = True
        test.Text = "Group Bar"
        test.Font = New Font("Tahama", 10.0F, FontStyle.Bold Or FontStyle.Underline)
        FpSpread1.Sheets(0).GroupBarInfo = test
        FpSpread1.AllowColumnMove = True
        FpSpread1.Sheets(0).AllowGroup = True
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        FpSpread1.Sheets(0).GroupBarInfo.ResetFont()
        FpSpread1.Sheets(0).GroupBarInfo.ResetBackColor()
        FpSpread1.Sheets(0).GroupBarInfo.ResetForeColor()
End Sub

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.