Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / TitleInfo Class / BackColor Property
Example


In This Topic
    BackColor Property (TitleInfo)
    In This Topic
    Gets or sets the back color of the title bar.
    Syntax
    'Declaration
     
    Public Property BackColor As Color
    'Usage
     
    Dim instance As TitleInfo
    Dim value As Color
     
    instance.BackColor = value
     
    value = instance.BackColor
    public Color BackColor {get; set;}
    Example
    This example sets the BackColor 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
    See Also