Font (Object)

Member of:

Control object, Title object, ValueLabels object

Description:

Contains all font methods and properties.

Example:

This example shows how to change the size, color, and alignment of a text label:

MyLabel = ActiveDocument.Sections["Dashboard"].Controls["TextLabel"]
MyLabel.Font.Size = 10
MyLabel.Font.Color = bqBlue
MyLabel.Font.Align = bqAlignTop

Constants:

The Align property uses the BqVerticalAlignment constant group, which consists of these values:

The Color property uses the BqColorType constant group, which consists of these values:

The Effect property uses the BqFontEffect constant group, which has these values:

The Justify property uses the BqHorizontalJustification constant group, that has these values:

Example:

This example shows how to make a text label blue and italic.

ActiveDocument.Sections["Dashboard"].Shapes["TextLabel1"].Font.Color=bqBlue
ActiveDocument.Sections["Dashboard"].Shapes["TextLabel1"].Font.Style=bqFontStyleItalic

Methods:

None

Properties:

Read-write: Property Color As BqColorType, Property Effect As BqFontEffect (not supported in the EPM Workspace), Property Name As String, Property Size As Number, Property Style As BqFontStyle