Represents the legend in a chart. Each chart can have only one legend.

Inheritance

constructor

public Legend()

Returns Legend

Inherited from: ChartObject

Returns the owning chart (read-only)

public WorksheetChart Chart { get; }

Inherited from: ChartObject

returns this object's owner. (read-only)

public ChartObject Owner { get; }

Inherited from: ChartObject

The owning sheet (read-only)

public Sheet Sheet { get; }

Inherited from: ChartObject

The owning workbook (read-only)

public Workbook Workbook { get; }

Inherited from: ChartObject

The owning worksheet (read-only)

public Worksheet Worksheet { get; }

Determines the appearance of the border drawn around the text area, as well as whether a border appears.

public ChartBorder Border { get; set; }

Defines the font properties for which have no specific font settings. Read-only.

public IWorkbookFont DefaultFont { get; }

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; }

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; }

Returns a read only collection of .

public LegendEntries LegendEntries { get; }

Returns or sets a boolean value indicating whether the legend can intersect with the chart's plot area.

public bool Overlay { get; set; }

Returns or sets a value that represents the position of the legend on the chart.

public LegendPosition Position { get; set; }

Determines the rotation of the legend's text area, expressed in degrees.

public double Rotation { get; set; }

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; }

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; }