Font Property
The Font property returns an AutoMFont object. This is a read-only property.
Syntax
object.Font
object.Font =Font
Remarks
For Legends (except wind chart legends), use both the Font property and the EntryFont method. For wind chart legends, use only the Font property.
Example 1
The following example shows how to change the size of text.
Text1.Font.size=24
Example 2
The following example shows how to return the font name.
Debug.Print Text1.Font.face
Example 3
This example demonstrates how to change the font color of a text to forest green.
Text1.Font.Color = grfColorForestGreen
Used by: AutoAxisTitle object, AutoGraphTitle object, AutoLegend Object, AutoLegendTitle object, AutoMText object, AutoPieChartTitle object, AutoPlotLabels object, AutoScaleTitle object