Legend

Legend class

Represents chart’s legend properties.

getActualHeight

NameDescription
getActualHeight ()Specifies actual height of the chart element. Call function IChart.ValidateChartLayout() before to get actual values. Read float.

Returns: float


getActualWidth

NameDescription
getActualWidth ()Specifies actual width of the chart element. Call function IChart.ValidateChartLayout() before to get actual values. Read float.

Returns: float


getActualX

NameDescription
getActualX ()Specifies actual x location (left) of the chart element relative to the left top corner of the chart. Call function IChart.ValidateChartLayout() before to get actual values. Read float.

Returns: float


getActualY

NameDescription
getActualY ()Specifies actual top of the chart element relative to the left top corner of the chart. Call function IChart.ValidateChartLayout() before to get actual values. Read float.

Returns: float


getBottom

NameDescription
getBottom ()Bottom. Read-only float.

Returns: float


getChart

NameDescription
getChart ()Returns the chart. Read-only IChart.

Returns: Chart


getEntries

NameDescription
getEntries ()Gets legend entries. Read-only ILegendEntryCollection.

Returns: LegendEntryCollection


getFormat

NameDescription
getFormat ()Returns the format of a legend. Read-only IFormat.

Returns: Format


getHeight

NameDescription
getHeight ()Returns or sets the height of a legend as a fraction of the height of the chart. Read/write float.

Returns: float


getOverlay

NameDescription
getOverlay ()Determines whether other chart elements shall be allowed to overlap legend. Read/write boolean.

Returns: boolean


getPosition

NameDescription
getPosition ()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.

Returns: int


getPresentation

NameDescription
getPresentation ()Returns the parent presentation of a FillFormat. Read-only IPresentation.

Returns: Presentation


getRight

NameDescription
getRight ()Right. Read-only float.

Returns: float


getSlide

NameDescription
getSlide ()Returns the parent slide of a FillFormat. Read-only BaseSlide.

Returns: NotesSlide, MasterNotesSlide, LayoutSlide, BaseSlide, Slide, MasterSlide, MasterHandoutSlide


getTextFormat

NameDescription
getTextFormat ()Text format. Read-only IChartTextFormat.

Returns: ChartTextFormat


getWidth

NameDescription
getWidth ()Returns or sets the width of a legend as a fraction of the width of the chart. Read/write float.

Returns: float


getX

NameDescription
getX ()Returns or sets the x coordinate of a legend as a fraction of the width of the chart. Read/write float.

Returns: float


getY

NameDescription
getY ()Returns or sets the y coordinate of a legend as a fraction of the height of the chart. Read/write float.

Returns: float


setHeight

NameDescription
setHeight (float)Returns or sets the height of a legend as a fraction of the height of the chart. Read/write float.

setOverlay

NameDescription
setOverlay (boolean)Determines whether other chart elements shall be allowed to overlap legend. Read/write boolean.

setPosition

NameDescription
setPosition (int)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.

setWidth

NameDescription
setWidth (float)Returns or sets the width of a legend as a fraction of the width of the chart. Read/write float.

setX

NameDescription
setX (float)Returns or sets the x coordinate of a legend as a fraction of the width of the chart. Read/write float.

setY

NameDescription
setY (float)Returns or sets the y coordinate of a legend as a fraction of the height of the chart. Read/write float.