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


In This Topic
    Border Property (TitleInfo)
    In This Topic
    Gets or sets the border of the title bar.
    Syntax
    'Declaration
     
    Public Property Border As IBorder
    'Usage
     
    Dim instance As TitleInfo
    Dim value As IBorder
     
    instance.Border = value
     
    value = instance.Border
    public IBorder Border {get; set;}
    Example
    This example uses the Border property.
    FarPoint.Win.Spread.TitleInfo test = new FarPoint.Win.Spread.TitleInfo();
    test.Value = 100;
    test.CellType = new FarPoint.Win.Spread.CellType.TextCellType();
    test.Height = 50;
    test.Visible = true;
    test.HorizontalAlign = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
    test.BackColor = Color.Beige;
    test.ForeColor = Color.Black;
    test.Font = new Font("MS Sans Serif", 10, FontStyle.Bold);
    test.Border = new FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Raised, Color.Red, Color.Blue);
    test.VerticalAlign = FarPoint.Win.Spread.CellVerticalAlignment.Center;
    fpSpread1.TitleInfo = test;
    Dim test As New FarPoint.Win.Spread.TitleInfo()
    test.Value = 100
    test.CellType = New FarPoint.Win.Spread.CellType.TextCellType()
    test.Height = 50
    test.Visible = True
    test.HorizontalAlign = FarPoint.Win.Spread.CellHorizontalAlignment.Center
    test.BackColor = Color.Beige
    test.ForeColor = Color.Black
    test.Font = New Font("MS Sans Serif", 10, FontStyle.Bold)
    test.Border = New FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Raised, Color.Red, Color.Blue)
    test.VerticalAlign = FarPoint.Win.Spread.CellVerticalAlignment.Center
    fpSpread1.TitleInfo = test
    See Also