Object Reference > ChartGroups Collection > ChartGroups Collection Properties > Item Property (ChartGroups) |
Item Property (ChartGroups)
Specifies a specific ChartGroup object from the collection.
Property Item(Index) As ChartGroup (read-only)
Indexed by number (with 1 representing the first object in the collection) or by the value of the Name property.
Example
Note: In Visual Basic, the Item property is understood and does not need to be explicitly set. Other development environments (JavaScript, for example), however, do not automatically set this. In these environments, specify the Item property as follows:
' Sets the chart type to Pie
Chart2D1.ChartGroups.Item(1).ChartType = oc2dTypePie
See Also