LabelText (Property)

Applies To:

LeftAxis object, RightAxis object, XAxisLabel object, ZaxisLabel object

Description:

Returns or sets the value of the text associated with a Chart axis or label.

Action:

Read-write, String

Example:

This example shows how to set the text for the different labels:

var MyChart = ActiveDocument.Sections["Chart"]
MyChart.ValuesAxis.LeftAxis.LabelText = "Left Axis"
MyChart.ValuesAxis.RightAxis.LabelText = "Left Axis"
MyChart.LabelsAxis.XAxis.LabelText = "Xaxis"
MyChart.LabelsAxis.ZAxis.LabelText = "Zaxis"