Dundas Chart for Windows Forms
Font Property
See Also  Example Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > DataPointAttributes Class : Font Property


Gets or sets a Font object, used to set font properties of the data point.


Data point font

Syntax

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

Return Value

A Font object, used to set font properties.

Example

The following sample assigns a new font object to Series1.

Visual Basic Copy Code
'create new font object, specifying font face, size and style
Dim myFont As New Font("Arial", 16, FontStyle.Italic)
'assign font object
Chart1.Series("Series1").Font = myFont

Remarks

Use this to set font properties of the applicable Chart objects.

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.

Note: Setting the Axis.LabelStyle.Font.Size property will result in the Axis.LabelsAutoFit property being set to false. Also, setting Axis.LabelsAutoFit to true will result in this property being reset to its default (8 pts). Applies only to the Label class.

To set the font of the root chart object's title use the TitleFont property instead.

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

© 2009 All Rights Reserved.