Legend

Legend class

Represents chart’s legend properties.

The Legend type exposes the following members:

Properties

NameDescription
xReturns or sets the x coordinate of a legend as a fraction of the width of the chart.
Read/write
yReturns or sets the y coordinate of a legend as a fraction of the height of the chart.
Read/write
widthReturns or sets the width of a legend as a fraction of the width of the chart.
Read/write
heightReturns or sets the height of a legend as a fraction of the height of the chart.
Read/write
rightRight.
Read-only
bottomBottom.
Read-only
overlayDetermines whether other chart elements shall be allowed to overlap legend.
Read/write bool.
text_formatText format.
Read-only IChartTextFormat.
positionSpecifies 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.
formatReturns the format of a legend.
Read-only IFormat.
chartReturns the chart.
Read-only IChart.
entriesGets legend entries.
Read-only ILegendEntryCollection.
as_i_layoutableAllows to get base ILayoutable interface.
Read-only ILayoutable.
as_i_formatted_text_containerAllows to get base IFormattedTextContainer interface.
Read-only IFormattedTextContainer.
as_i_slide_componentAllows to get base ISlideComponent interface.
Read-only ISlideComponent.
slideReturns the base slide.
Read-only IBaseSlide.
as_i_presentation_componentAllows to get base IPresentationComponent interface.
Read-only IPresentationComponent.
presentationReturns the presentation.
Read-only IPresentation.

See Also