ChartSection object, XLabels object, YLabels object, and Zlabels object
Represents the values on the YLabel, XLabel, or ZLabel.
All collections have the “Item(NameOrIndex)” method. This is the default method for all collections, and the method returns collection items using a particular index or name. Use brackets ([]) to represent calls to the Item (Method). For example, these statements are identical: myItem = Documents[1] myItem = Documents.Item(1) myItem = Documents["StartUp.bqy"] myItem = Documents.Item("StartUp.bqy") |
This example shows how to set up LabelValues items 1 and 2 in a new array, which can be used with the FocusSelection and HideSelection methods:
var Xarray = new Array(); Xarray[0] = ActiveDocument.Sections["Chart"].XLabels.LabelValues.Item(1) Xarray[1] = ActiveDocument.Sections["Chart"].XLabels.LabelValues.Item(2)