Legend Object

Description

Represents the legend in a chart. The Legend object contains one or more LegendEntry objects; each LegendEntry object contains a LegendKey object. There is no Legends collection because each chart can have only one legend.

Accessors

The Legend property returns the chart legend. The following example sets the font for the legend in embedded chart one on worksheet one.


Worksheets(1).ChartObjects(1).Chart.Legend.Font.Bold = True

Remarks

The chart legend is not visible unless the HasLegend property is True. If this property is False, properties and methods of the Legend object will fail.

Properties

Application Property, Border Property, Creator Property, Font Property, Height Property, Interior Property, Left Property, Name Property, Parent Property, Position Property, Shadow Property, Top Property, Width Property.

Methods

Delete Method, LegendEntries Method, Select Method.