FocusSelection (Method)

Applies To:

AxisLabels (XLabels, YLabels, and ZLabels)

Description:

Enables you to single out selected label value items, providing you with the ability to concentrate your view to particular items of interest.

Note:

You must specify the label value item in an array before using the FocusSelection (Method).

Syntax:

Expression.FocusSelection(ItemArray As Value)

Expression Required:

An expression that focuses a LabelValues item

Example:

This example shows how to include LabelValues items 1 and 3 in an array and then focus them in the Chart:

var NewArray = new Array()
NewArray[0]=ActiveDocument.Sections["AllChart"].XLabels.LabelValues.Item(1)
NewArray[1]=ActiveDocument.Sections["AllChart"].XLabels.LabelValues.Item(2)
ActiveDocument.Sections["AllChart"].XLabels.FocusSelection(NewArray)