Legend.LegendEntries Method
Returns a collection of legend entries for the legend.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Function LegendEntries ( _
Index As Object _
) As Object
'Usage
Dim instance As Legend
Dim Index As Object
Dim returnValue As Object
returnValue = instance.LegendEntries(Index)
Object LegendEntries(
Object Index
)
Parameters
- Index
Type: System.Object
Return Value
Type: System.Object
A [LegendEntries#SameCHM] object that represents the legend entries for the legend.
Examples
This example sets the font for legend entry one on the first chart in the active document.
With ActivePresentation.Slides(1).Shapes(1)
If .HasChart Then
.Chart.Legend.LegendEntries(1).Font.Name = "Arial"
End If
End With