Поделиться через


Legend Members

Include Protected Members
Include Inherited Members

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

The Legend type exposes the following members.

Properties

  Name Description
Public property Application When used without an object qualifier, returns an Application object that represents the Microsoft PowerPoint application. When used with an object qualifier, returns an Application object that represents the creator of the specified object (you can use this property with an Automation object to return the application of that object). Read-only.
Public property AutoScaleFont Reserved for internal use.
Public property Border Reserved for internal use.
Public property Creator Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only.
Public property Fill Reserved for internal use.
Public property Font Reserved for internal use.
Public property Format Reserved for internal use.
Public property Height Returns or sets the height, in points, of the object. Read/write double-precision floating-point number.
Public property IncludeInLayout true if a legend will occupy the chart layout space when a chart layout is being determined. The default is true. Read/write Boolean value.
Public property Interior Reserved for internal use.
Public property Left Returns the distance, in points, from the left edge of the object to the left edge of the chart area. Read-only double-precision floating-point number.
Public property Name Returns the name of the object. Read-only string.
Public property Parent Returns the parent for the specified object. Read-only.
Public property Position Returns or sets the position of the legend on the chart. Read/write XlLegendPosition.
Public property Shadow Returns or sets a value that indicates whether the object has a shadow. Read/write Boolean value.
Public property Top Returns or sets the distance, in points, from the top edge of the object to the top of the first row (on a worksheet) or the top of the chart area (on a chart). Read/write double-precision floating-point number.
Public property Width Returns or sets the width, in points, of the object. Read/write double-precision floating-point number.

Top

Methods

  Name Description
Public method Clear Clears the entire object.
Public method Delete Deletes the object.
Public method LegendEntries Returns a collection of legend entries for the legend.
Public method Select Selects the object.

Top

See Also

Reference

Legend Interface

Microsoft.Office.Interop.PowerPoint Namespace