Represents the legend in a chart. Each chart can have only one legend.
Inheritance
object
Constructors
Section titled "Constructors"constructor
public Legend() Returns Legend
Properties
Section titled "Properties"Chart
Section titled "Chart"Inherited from: ChartObject
Returns the owning chart (read-only)
public WorksheetChart Chart { get; } Owner
Section titled "Owner"Inherited from: ChartObject
returns this object's owner. (read-only)
public ChartObject Owner { get; } Sheet
Section titled "Sheet"Inherited from: ChartObject
The owning sheet (read-only)
public Sheet Sheet { get; } Workbook
Section titled "Workbook"Inherited from: ChartObject
The owning workbook (read-only)
public Workbook Workbook { get; } Worksheet
Section titled "Worksheet"Inherited from: ChartObject
The owning worksheet (read-only)
public Worksheet Worksheet { get; } Border
Section titled "Border"Determines the appearance of the border drawn around the text area, as well as whether a border appears.
public ChartBorder Border { get; set; } DefaultFont
Section titled "DefaultFont"Defines the font properties for which have no specific font settings. Read-only.
public IWorkbookFont DefaultFont { get; } DefaultFontFill
Section titled "DefaultFontFill"Returns or sets a derived object which defines the font color(s) for .
public ChartFillBase DefaultFontFill { get; set; } Returns or sets a derived object which defines the fill properties for the legend's text area.
public ChartFillBase Fill { get; set; } Height
Section titled "Height"Returns or sets a value that represents the height of the legend area, expressed as a fraction of the chart area's height.
public double Height { get; set; } Returns or sets a value that represents the position of the left edge of the legend area, expressed as a fraction of the chart area's width.
public double Left { get; set; } LegendEntries
Section titled "LegendEntries"Returns a read only collection of .
public LegendEntries LegendEntries { get; } Overlay
Section titled "Overlay"Returns or sets a boolean value indicating whether the legend can intersect with the chart's plot area.
public bool Overlay { get; set; } Position
Section titled "Position"Returns or sets a value that represents the position of the legend on the chart.
public LegendPosition Position { get; set; } Rotation
Section titled "Rotation"Determines the rotation of the legend's text area, expressed in degrees.
public double Rotation { get; set; } TextDirection
Section titled "TextDirection"Determines the orientation and direction in which text flows.
public TextDirection TextDirection { get; set; } Returns or sets a value that represents the position of the top edge of the legend area, expressed as a fraction of the chart area's height.
public double Top { get; set; } Width
Section titled "Width"Returns or sets a value that represents the width of the legend area, expressed as a fraction of the chart area's width.
public double Width { get; set; }