Share via


Legend Members

Include Protected Members
Include Inherited Members

Represents the legend in a chart.

The Legend type exposes the following members.

Properties

  Name Description
Public property Application Returns an Application object that represents the Microsoft Excel application.
Public property AutoScaleFont True if the text in the object changes font size when the object size changes. The default value is True.
Public property Border Returns a Border object that represents the border of the object.
Public property Creator Returns a 32-bit integer that indicates the application in which this object was created.
Public property Fill Returns a ChartFillFormat object that contains fill formatting properties for the specified chart legend.
Public property Font Returns a Font object that represents the font of the specified object.
Public property Format Returns the ChartFormat object. Read-only.
Public property Height The height, in points, of the object.
Public property IncludeInLayout True if a legend will occupy the chart layout space when a chart layout is being determined. The default value is True. Read/write Boolean.
Public property Interior Returns an Interior object that represents the interior of the specified object.
Public property Left The distance, in points, from the left edge of the object to the left edge of the chart area.
Public property Name Returns the name of the object.
Public property Parent Returns the parent object for the specified object.
Public property Position Returns or sets the position of the legend on the chart.
Public property Shadow True if the font is a shadow font or if the object has a shadow.
Public property Top The distance, in points, from the top edge of the object to the top of the chart area.
Public property Width The width, in points, of the object.

Top

Methods

  Name Description
Public method Clear Clears the entire object.
Public method Delete Deletes the object.
Public method LegendEntries Returns an object that represents either a single legend entry (a LegendEntry object) or a collection of legend entries (a LegendEntries object) for the legend.
Public method Select Selects the object.

Top

See Also

Reference

Legend Interface

Microsoft.Office.Interop.Excel Namespace