Rockwell Automation 9307 FactoryTalk EnergyMetrix User Manual
Page 242

FactoryTalk EnergyMetrix Software
242
Properties
Font Object
The Font object permits changing the fonts used in Multi-Purpose Report chart objects
from the default font (Arial, 8 pt.).
Applies to
The Font object allow changing the font through scripting for the following chart objects:
[ChartObject].XAxis
[ChartObject].YAxis
[ChartObject].SeriesLegendBox
[ChartObject].Title
Instancing
The Font object is a member object of the above-listed chart objects and must be created
before its properties can be assigned.
Accessing
MPR script code creates new instances of the Font object by using the New operator
Properties
Examples
This script creates and sets the properties of the font object for the barChart X axis, Y axis,
series legend box and title:
barChart.XAxis.Font = new Font("Arial", 10)
barChart.YAxis.Font = new Font("Arial", 10)
barChart.SeriesLegendBoxFont = new Font("Arial", 12)
barChart.Title.Font = new Font("Arial", 12, FontStyle.Bold)
Property
R/W
Description
FiscalYears(index) As
FiscalYear
R
Collection of FiscalYear objects that represent the report
date range in periods of fiscal years
Property
R/W
Description
XAxis.Font As Font
R/W
The font object assigned to the X axis
YAxis.Font As Font
R/W
The font object assigned to the Y axis
SeriesLegendBoxFont As
Font
R/W
The font object assigned to the series legend box
Title.Font As Font
R/W
The font object assigned to the title