Spread Windows Forms 10.0 Product Documentation
ForeColor Property (TitleInfo)
Example 


Gets or sets the text color of the title bar.
Syntax
'Declaration
 
Public Property ForeColor As Color
'Usage
 
Dim instance As TitleInfo
Dim value As Color
 
instance.ForeColor = value
 
value = instance.ForeColor
public Color ForeColor {get; set;}
Example
This example sets the ForeColor property.
FarPoint.Win.Spread.TitleInfo test = new FarPoint.Win.Spread.TitleInfo();

private void Form1_Load(object sender, EventArgs e)
{
test.Text = "Testing";
test.Visible = true;
test.HorizontalAlign = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
test.BackColor = Color.Beige;
test.ForeColor = Color.Black;
test.VerticalAlign = FarPoint.Win.Spread.CellVerticalAlignment.Center;
fpSpread1.TitleInfo = test;
}

private void button1_Click(object sender, EventArgs e)
{
test.Reset();
}
Dim test As New FarPoint.Win.Spread.TitleInfo()

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
test.Text = "Testing"
test.Visible = True
test.HorizontalAlign = FarPoint.Win.Spread.CellHorizontalAlignment.Center
test.BackColor = Color.Beige
test.ForeColor = Color.Black
test.VerticalAlign = FarPoint.Win.Spread.CellVerticalAlignment.Center
FpSpread1.TitleInfo = test
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
test.Reset()
End Sub
Requirements

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

See Also

Reference

TitleInfo Class
TitleInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.