ChartGroups.Item Method
Returns a single object from a collection.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Function Item ( _
Index As Object _
) As ChartGroup
'Usage
Dim instance As ChartGroups
Dim Index As Object
Dim returnValue As ChartGroup
returnValue = instance.Item(Index)
ChartGroup Item(
Object Index
)
Parameters
- Index
Type: System.Object
The index number for the object.
Return Value
Type: Microsoft.Office.Interop.PowerPoint.ChartGroup
A [ChartGroup#SameCHM] object contained by the collection.
Examples
This example adds drop lines to chart group one for the first chart group of the first chart in the active document.
With ActivePresentation.Slides(1).Shapes(1)
If .HasChart Then
.Chart.ChartGroups.Item(1).HasDropLines = True
End If
End With