Formatting the Graph
Change the font size for both the vertical axis and horizontal axis to 12.
myGraph.HorizontalAxis.Title.Font.Size = 12 myGraph.VerticalAxis.Title.Font.Size = 12
- Search for the CartesianGraph object in the Help1.
-
In the Help under
, search for properties applicable to graph axes:
- HorizontalAxis
- VerticalAxis
- In the Help under (Read only HorizontalAxis) to navigate to the HorizontalAxis object. , click on the link
-
In the Help under
, search for a property applicable to the axis title:
- Title
- In the Help under (Read only GraphAxisTitle) to navigate to the HorizontalAxis object. , click on the link
-
In the Help under
, search for a property applicable to font:
- Font
- In the Help under (Read only FontFormat) to navigate to the FontFormat object. , click on the link
-
In the Help under
, search for a property applicable to the axis title:
- Size
-
Since we already have a handle on the Cartesian graph, the
result is then:
myGraph.HorizontalAxis.Title.Font.Size
-
Specify the font size as 12.
myGraph.HorizontalAxis.Title.Font.Size = 12
-
Similar to Step 7, the font size can be specified for the vertical axis:
myGraph.VerticalAxis.Title.Font.Size = 12