LegendEntries Method

Applies To

Legend object.

Description

Returns an object that represents either a single legend entry (a LegendEntry object, Syntax 1) or a collection of legend entries (a LegendEntries object, Syntax 2) for the legend.

Syntax 1

expression.LegendEntries(Index)

Syntax 2

expression.LegendEntries

expression Required. An expression that returns a Legend object.

Index Optional Variant. The number of the legend entry.

Example

This example sets the font for legend entry one on Chart1.

Charts("Chart1").Legend.LegendEntries(1).Font.Name = "Arial"