Gets or sets the title font properties of an axis.
Axis Title Font
Visual Basic (Declaration) | |
---|---|
Public Property TitleFont As Font |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public Font TitleFont {get; set;} |
Return Value
A Font object, used for the font properties of a title.
The following sample code demonstrates how to specify a font face of Courier and font size of 8 points for the title of the primary X-axis.
Visual Basic | Copy Code |
---|---|
Dim newFont As New Font("Courier", 8) Chart1.ChartAreas(0).AxisX.TitleFont = newFont |
Sets font properties such as face, size, etc.
To set font properties at run-time a new font object must be created. Attempting to change the property of this font object at run-time will result in a compilation error.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family