Spread Windows Forms 9.0 Product Documentation
Font Property (TitleInfo)
Example 


Gets or sets the font settings of the title bar.
Syntax
'Declaration
 
Public Property Font As Font
'Usage
 
Dim instance As TitleInfo
Dim value As Font
 
instance.Font = value
 
value = instance.Font
public Font Font {get; set;}
Example
This example uses the Font 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
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.