LegendEntries Interface

Definition

A collection of all the LegendEntry objects in the specified chart legend.

public interface class LegendEntries : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("B6511068-70BF-4751-A741-55C1D41AD96F")]
public interface LegendEntries : System.Collections.IEnumerable
type LegendEntries = interface
    interface IEnumerable
Public Interface LegendEntries
Implements IEnumerable
Attributes
Implements

Examples

Use the LegendEntries(Object) method to return the LegendEntries collection. The following example loops through the collection of legend entries for the first chart in the active document and changes their font color.

Use LegendEntries (index), where index is the legend entry index number, to return a single LegendKey object. You cannot return legend entries by name.

The index number represents the position of the legend entry in the legend. LegendEntries(1) is at the top of the legend; LegendEntries(LegendEntries.Count) is at the bottom.

Remarks

Each legend entry has two parts: the text of the entry, which is the name of the series or trendline associated with the legend entry; and the entry marker, which visually links the legend entry with its associated series or trendline in the chart. The formatting properties for the entry marker and its associated series or trendline are contained in the LegendKey object.

Properties

Application

When used without an object qualifier, this property returns an _Application object that represents the Microsoft Word 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.

Count

Returns a Integer value that represents the number of objects in the collection.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Integer.

Item[Object]

Returns a single object from the collection.

Parent

Returns the parent for the specified object. Read-only Object.

Methods

_Default(Object)

Reserved for internal use.

GetEnumerator()

Applies to