Dundas Chart for ASP.NET
TitleFont Property
See Also  Example Send comments on this topic.
Dundas.Charting.WebControl Namespace > Axis Class : TitleFont Property


Gets or sets the title font properties of an axis.


Axis Title Font

Syntax

Visual Basic (Declaration)  
Public Property TitleFont As Font
Visual Basic (Usage) Copy Code
Dim instance As Axis
Dim value As Font
 
instance.TitleFont = value
 
value = instance.TitleFont
C#  
public Font TitleFont {get; set;}

Return Value

A Font object, used for the font properties of a title.

Example

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

Remarks

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.

Requirements

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

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.