ChLegendEntries Collection

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

ChLegend
Aa198415.parchild(en-us,office.10).gifChLegendEntries
Aa198415.space(en-us,office.10).gifAa198415.parchild(en-us,office.10).gifChLegendEntry

The collection of ChLegendEntry objects for the specified legend.

Using the ChLegendEntries collection

The ChLegend object’s LegendEntries property returns a ChLegendEntries collection.

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

The index number represents the position of the legend entry in the legend. LegendEntries(0) is at the top of the legend, and LegendEntries(LegendEntries.Count - 1) is at the bottom. The following example changes the font for the text of the legend entry at the top of the chartspace  legend (this is usually the legend for series one) in Chartspace1.

  Chartspace1.ChartSpaceLegend.LegendEntries(0) _
    .Font.Bold = True