Legend

Legend class

Represents chart’s legend properties.

public class Legend : DomObject<Chart>, ILegend

Properties

NameDescription
ActualHeight { get; }Specifies actual height of the chart element. Call method IChart.ValidateChartLayout() before to get actual values. Read Single.
ActualWidth { get; }Specifies actual width of the chart element. Call method IChart.ValidateChartLayout() before to get actual values. Read Single.
ActualX { get; }Specifies actual x location (left) of the chart element relative to the left top corner of the chart. Call method IChart.ValidateChartLayout() before to get actual values. Read Single.
ActualY { get; }Specifies actual top of the chart element relative to the left top corner of the chart. Call method IChart.ValidateChartLayout() before to get actual values. Read Single.
Bottom { get; }Bottom. Read-only Single.
Chart { get; }Returns the chart. Read-only IChart.
Entries { get; }Gets legend entries. Read-only ILegendEntryCollection.
Format { get; }Returns the format of a legend. Read-only IFormat.
Height { get; set; }Returns or sets the height of a legend as a fraction of the height of the chart. Read/write Single.
Overlay { get; set; }Determines whether other chart elements shall be allowed to overlap legend. Read/write Boolean.
Position { get; set; }Specifies the position of the legend on a chart. Non-NaN values of X, Y, Width, Heigt properties override effect of this property. Read/write LegendPositionType.
Right { get; }Right. Read-only Single.
TextFormat { get; }Text format. Read-only IChartTextFormat.
Width { get; set; }Returns or sets the width of a legend as a fraction of the width of the chart. Read/write Single.
X { get; set; }Returns or sets the x coordinate of a legend as a fraction of the width of the chart. Read/write Single.
Y { get; set; }Returns or sets the y coordinate of a legend as a fraction of the height of the chart. Read/write Single.

See Also