LegendEntries Interface

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

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

Syntax

'Declaration
<GuidAttribute("B6511068-70BF-4751-A741-55C1D41AD96F")> _
Public Interface LegendEntries _
    Inherits IEnumerable
'Usage
Dim instance As LegendEntries
[GuidAttribute("B6511068-70BF-4751-A741-55C1D41AD96F")]
public interface LegendEntries : IEnumerable

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.

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.

See Also

Reference

LegendEntries Members

Microsoft.Office.Interop.Word Namespace