[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ILegendEntries.Item

this Property

this[int]

Gets the legend entry at the specified index.

Use this property to access a single ILegendEntry object from the current legend entry collection.

Declaration
ILegendEntry this[int index] { get; }
ReadOnly Default Property Item(index As Integer) As ILegendEntry
Parameters
Type Name Description
int index

The zero-based index of the legend entry to retrieve.

Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Name", "Value"},
    {"A", 10},
    {"B", 20}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns, true, true);
ILegendEntry legendEntry = chart.Legend.LegendEntries[0];
IFontFormat font = legendEntry.Font;