XAxisLabel (Object)

Member of:

LabelsAxis object

Description:

Represents a Chart X axis label. This object’s properties directly affect the display of the X axis and correspond to the options provided on the Label Axis tab of the Properties dialog box.

Example:

This example shows how to modify the properties of the X axis label:

ActiveDocument.Sections["Chart1"].LabelsAxis.Xaxis.AutoFrequency = true
ActiveDocument.Sections["Chart1"].LabelsAxis.Xaxis.LabelFrequency = 3
ActiveDocument.Sections["Chart1"].LabelsAxis.Xaxis.LabelText = "X Axis"
ActiveDocument.Sections["Chart1"].LabelsAxis.Xaxis.ShowLabel = true
ActiveDocument.Sections["Chart1"].LabelsAxis.Xaxis.ShowTickmarks = false
ActiveDocument.Sections["Chart1"].LabelsAxis.Xaxis.ShowValues = true
ActiveDocument.Sections["Chart1"].LabelsAxis.XAxis.TickmarkFrequency = 4

Methods:

None

Properties:

Read-write: Property AutoFrequency As Boolean, Property LabelFrequency As Number, Property LabelText As String, Property ShowLabel As Boolean, Property ShowTickmarks As Boolean, Property ShowValues As Boolean, Property TickmarkFrequency As Number