Compartilhar via


Legend Interface

Represents the legend in a chart.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("000208CD-0000-0000-C000-000000000046")> _
Public Interface Legend
'Usage
Dim instance As Legend
[InterfaceTypeAttribute()]
[GuidAttribute("000208CD-0000-0000-C000-000000000046")]
public interface Legend

Remarks

Each chart can have only one legend. The Legend object contains one or more LegendEntry objects; each LegendEntry object contains a LegendKey object.

Use the Legend property to return the Legend object.

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

See Also

Reference

Legend Members

Microsoft.Office.Interop.Excel Namespace