ChartPlotArea

ChartPlotArea class

Represents rectangle where chart should be plotted.

getActualHeight

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

Returns: float


getActualWidth

NameDescription
getActualWidth ()Specifies actual width of the chart element. Call method 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 method 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 method IChart.ValidateChartLayout() before to get actual values. Read float.

Returns: float


getBottom

NameDescription
getBottom ()Bottom. Read-only float.

Returns: float


getChart

NameDescription
getChart ()Chart. Read-only IChart.

Returns: Chart


getFormat

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

Returns: Format


getHeight

NameDescription
getHeight ()Returns or sets the height of a plot area bounding box as a fraction of the height of the chart (from 0 to 1). Read/write float.

Returns: float


getLayoutTargetType

NameDescription
getLayoutTargetType ()If layout of the plot area defined manually this property specifies whether to layout the plot area by its inside (not including axis and axis labels) or outside (including axis and axis labels). Read/write LayoutTargetType( #getLayoutTargetType/ #setLayoutTargetType(int)). Presentation presentation = new Presentation(); try { ISlide slide = presentation.getSlides().get_Item(0); IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 20, 100, 600, 400); chart.getPlotArea().setX(0.2f); chart.getPlotArea().setY(0.2f); chart.getPlotArea().setWidth(0.7f); chart.getPlotArea().setHeight(0.7f); chart.getPlotArea().setLayoutTargetType(LayoutTargetType.Inner); … } finally { if (presentation != null) presentation.dispose(); }

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: MasterHandoutSlide, BaseSlide, LayoutSlide, Slide, MasterSlide, NotesSlide, MasterNotesSlide


getWidth

NameDescription
getWidth ()Returns or sets the width of a plot area bounding box as a fraction of the width of the chart (from 0 to 1). Read/write float.

Returns: float


getX

NameDescription
getX ()Returns or sets the x coordinate of the upper left corner of plot area bounding box as a fraction of the width of the chart (from 0 to 1). Read/write float.

Returns: float


getY

NameDescription
getY ()Returns or sets the y coordinate of the upper left corner of plot area bounding box as a fraction of the height of the chart (from 0 to 1). Read/write float.

Returns: float


isLocationAutocalculated

NameDescription
isLocationAutocalculated ()Defines how location should be calculated: true – calculated automatically; defined by the X, Y, Width, Height properties. Read-only boolean.

Returns: boolean


setHeight

NameDescription
setHeight (float)Returns or sets the height of a plot area bounding box as a fraction of the height of the chart (from 0 to 1). Read/write float.

Returns: void


setLayoutTargetType

NameDescription
setLayoutTargetType (int)If layout of the plot area defined manually this property specifies whether to layout the plot area by its inside (not including axis and axis labels) or outside (including axis and axis labels). Read/write LayoutTargetType( #getLayoutTargetType/ #setLayoutTargetType(int)). Presentation presentation = new Presentation(); try { ISlide slide = presentation.getSlides().get_Item(0); IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 20, 100, 600, 400); chart.getPlotArea().setX(0.2f); chart.getPlotArea().setY(0.2f); chart.getPlotArea().setWidth(0.7f); chart.getPlotArea().setHeight(0.7f); chart.getPlotArea().setLayoutTargetType(LayoutTargetType.Inner); … } finally { if (presentation != null) presentation.dispose(); }

Returns: void


setWidth

NameDescription
setWidth (float)Returns or sets the width of a plot area bounding box as a fraction of the width of the chart (from 0 to 1). Read/write float.

Returns: void


setX

NameDescription
setX (float)Returns or sets the x coordinate of the upper left corner of plot area bounding box as a fraction of the width of the chart (from 0 to 1). Read/write float.

Returns: void


setY

NameDescription
setY (float)Returns or sets the y coordinate of the upper left corner of plot area bounding box as a fraction of the height of the chart (from 0 to 1). Read/write float.

Returns: void