Share via


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

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

See Also

Reference

ChartGroups Interface

ChartGroups Members

Microsoft.Office.Interop.PowerPoint Namespace