[]
Represents a legend entry in a chart legend.
An ILegendEntry identifies a single entry displayed in a chart legend.
Use this interface to access the entry's font and chart formatting, or to remove
the entry from the legend. Legend entries are available from the
ILegendEntries collection returned by LegendEntries.
public interface ILegendEntry
Public Interface ILegendEntry
worksheet.Range["A1:B3"].Value = new object[,] {
{"Region", "Sales"},
{"North", 100},
{"South", 200}
};
IShape shape = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 200, 20, 300, 200);
shape.Chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns, true, true);
ILegendEntry legendEntry = shape.Chart.Legend.LegendEntries[0];
legendEntry.Font.Italic = true;
| Name | Description |
|---|---|
| Font | Gets the IFontFormat object that represents the font settings of the legend entry. Use the returned IFontFormat object to read or modify the font applied to the legend entry text. |
| Format | Gets the chart format of the legend entry. |
| Parent | Gets the parent legend that contains this legend entry. |
| Name | Description |
|---|---|
| Delete() | Deletes this legend entry. Use this method to mark the current legend entry as deleted. |