ODF .NET Class Library
Show/Hide TOC

# Legend Class

Represents a legend for a chart.

## Definition

Namespace: Independentsoft.Office.Odf.Charts
Assembly: Independentsoft.Office.Odf (in Independentsoft.Office.Odf.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#

    public class Legend : IContentElement

VB

    Public Class Legend
    	Implements IContentElement

Inheritance
  Object Legend

Implements
  IContentElement

## Constructors

Legend | Initializes a new instance of the Legend class.

## Properties

Align | Specifies the alignment of a legend with the plot area. The defined values are: - center: legend is aligned at the center of the plot-area. - end: legend is aligned at the end of the plot-area (which is right or bottom). - start: legend is aligned at the beginning of the plot-area (which is left or top).
Expansion | Specifies the direction in which a legend expands while accommodating new entries. The defined values are: - balanced: legend expands horizontally and vertically. - custom: with a style:legend-expansion-aspect-ratio attribute legend expands according to the specified ratio. - high: legend expands vertically. - wide: legend expands horizontally.
ExpansionAspectRatio | Contains the ratio between width and height for a Legend object.
Position | Specifies the placement of a legend.
Style | Contains name that reference style mechanisms.
X | Contains the X coordinate.
Y | Contains the Y coordinate.

## Methods

Clone | Creates a new object that is a deep copy of the current instance.
Equals | (Inherited from Object)
Finalize | (Inherited from Object)
GetContentElements | Returns all content elements.
GetHashCode | (Inherited from Object)
GetParent | Returns the parent element.
GetType | (Inherited from Object)
MemberwiseClone | (Inherited from Object)
ToString | Converts the value of the current Legend object to its equivalent string representation. (Overrides ObjectToString)

## See Also

#### Reference

Independentsoft.Office.Odf.Charts Namespace