XLabels (Object)

Member of:

ChartSection object

Description:

Represents a label value on the X axis. This object’s properties directly affect the display of the label value on the X axis and correspond to the options provided on the Chart menu or shortcut menu.

Note:

You must specify the label values in an array before using the FocusSelection (Method), HideSelection (Method), and UnHide (Method).

Example:

This example shows how to modify the label value on the X-axis:

var OArray = new Array()
OArray[0]= ActiveDocument.Sections["Chart"].XLabels.LabelValues.Item(1)
OArray[1]= ActiveDocument.Sections["Chart"].XLabels.LabelValues.Item(3)
var ZArray = new Array()
ZArray[0]= ActiveDocument.Sections["Chart"].XLabels.LabelValues.Item(2)
ZArray[1]= ActiveDocument.Sections["Chart"].XLabels.LabelValues.Item(4)
ActiveDocument.Sections["Chart"].XLabels.FocusSelection(OArray)
ActiveDocument.Sections["Chart"].XLabels.HideSelection(ZArray)
ActiveDocument.Sections["Chart"].XLabels.UnhideAll(ZArray)

Methods:

DrillInto(NameOrIndex As Value, DrillName As String), FocusSelection(ItemArray As Value), HideSelection(ItemArray As Value), UnhideAll()

Properties:

Read-only: Property Count as Number

Objects:

LabelValues As LabelValues