ChLegendEntry Object

ChLegend
ChLegendEntries
ChLegendEntry
Multiple objects

Represents a single legend entry. The ChLegendEntry object is a member of the ChLegendEntries collection.

Using the ChLegendEntry object

The ChLegendEntries collection's Item property returns a ChLegendEntry object.

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) 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

Properties | Bottom Property | Font Property | Index Property | Left Property | ObjectType Property | Parent Property | PivotObject Property | Right Property | Top Property | Visible Property

Methods | Select Method

Parent Objects | ChLegend

Child Objects | ChFont | ChLegend