ChartDirector 6.2 (.NET Edition)

BaseMeter.setLabelStyle


Usage

[C#] public ChartDirector.TextBox setLabelStyle([ string font [, double fontSize [, int fontColor [, double fontAngle ]]]]);
[VB] Public Function setLabelStyle([ font As String [, fontSize As Double [, fontColor As Integer [, fontAngle As Double ]]]]) As ChartDirector.TextBox

Description

Sets the font style used to for the meter labels.

See Font Specification for details on various font attributes.

Arguments

ArgumentDefaultDescription
font"bold"The font used to draw the labels.
fontSize-1The font size used to draw the labels in points. A value of -1 means the font size is not changed. The default font size is 10 points for angular meters, and 8 points for linear meters.
fontColorTextColorThe color used to draw the labels.
fontAngle0The rotation angle of the labels.

Return Value

A TextBox object representing the prototype of the meter labels. This may be used to fine-tune the appearance of the meter labels.