GraphSetMainTitleFontDescriptor method (WinStudio scripts)
Remarque: This topic applies to the graphing tool, which is supported for
backward compatibility. We recommend that, if you want to add charts or gauges
to a form, use the newer FusionCharts tool instead. See
About charts and gauges.
Applies To
IWSFormComponent interface, graph objects
Definition
Sets the font for the graph's main title.
Syntax
object.GraphSetMainTitleFontDescriptor( string )
Part | Description |
object | Required. A reference to a valid graph component object. |
string | Required.
Consists of fourteen comma-separated values:
Size,0,0,0,Weight,Italic,Underline,Strikethrough,0,0,0,0,0,FontFamily For more information about these values, see the "Settings" section. |
Settings
Setting | Description |
Size | A decimal value representing the point size. |
Weight | Range from 0 (non-bold) to 700 (bold). |
Italic | 0 = Normal text. 1 = Italicized text. |
Underline | 0 = Text not underlined. 1 = Text underlined. |
Strikethrough | 0 = Normal text. 1 = Text struck through. |
FontFamily | Name of the font to be used. |
Example
Dim fontDescriptor As String = "16,0,0,0,700,0,0,0,0,0,0,0,0,Arial" ' 16-point bold Arial
ThisForm.Components("graph1").GraphSetMainTitleFontDescriptor(fontDescriptor)
ThisForm.Components("graph1").GraphDraw()