ZLabels (Object)

Member of:

ChartSection object

Description:

Represents a label value on the Z axis. This object’s properties directly affect the display of the label on the Z 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 Z axis:

var OArray = new Array()
OArray[0]= ActiveDocument.Sections["Chart"].ZLabels.LabelValues.Item(1)
OArray[1]= ActiveDocument.Sections["Chart"].ZLabels.LabelValues.Item(3)

var ZArray = new Array()
ZArray[0]= ActiveDocument.Sections["Chart"].ZLabels.LabelValues.Item(2)
ZArray[1]= ActiveDocument.Sections["Chart"].ZLabels.LabelValues.Item(4)

ActiveDocument.Sections["Chart"].Zlabels.FocusSelection(OArray)
ActiveDocument.Sections["Chart"].Zlabels.HideSelection(ZArray)
ActiveDocument.Sections["Chart"].Zlabels.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