Legend Object Members

Excel Developer Reference

Represents the legend in a chart. Each chart can have only one legend.

Methods

  Name Description
Bb242330.methods(en-us,office.12).gif Clear Clears the entire object.
Bb242330.methods(en-us,office.12).gif Delete Deletes the object.
Bb242330.methods(en-us,office.12).gif 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.
Bb242330.methods(en-us,office.12).gif Select Selects the object.

Properties

  Name Description
Bb242330.properties(en-us,office.12).gif Application When used without an object qualifier, this property returns an Application object that represents the Microsoft Excel application. When used with an object qualifier, this property returns an Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to return the application of that object). Read-only.
Bb242330.properties(en-us,office.12).gif AutoScaleFont True if the text in the object changes font size when the object size changes. The default value is True. Read/write Variant.
Bb242330.properties(en-us,office.12).gif Format Read-only
Bb242330.properties(en-us,office.12).gif Height Returns or sets a Double value that represents the height, in points, of the object.
Bb242330.properties(en-us,office.12).gif IncludeInLayout Read/write
Bb242330.properties(en-us,office.12).gif Left Returns or sets a Double value that represents the distance, in points, from the left edge of the object to the left edge of column A (on a worksheet) or the left edge of the chart area (on a chart).
Bb242330.properties(en-us,office.12).gif Name Returns a String value that represents the name of the object.
Bb242330.properties(en-us,office.12).gif Parent Returns the parent object for the specified object. Read-only.
Bb242330.properties(en-us,office.12).gif Position Returns or sets a XlLegendPosition value that represents the position of the legend on the chart.
Bb242330.properties(en-us,office.12).gif Shadow Returns or sets a Boolean value that determines if the object has a shadow.
Bb242330.properties(en-us,office.12).gif Top Returns or sets a Double value that represents the distance, in points, from the top edge of the object to the top of row 1 (on a worksheet) or the top of the chart area (on a chart).
Bb242330.properties(en-us,office.12).gif Width Returns or sets a Double value that represents the width, in points, of the object.