IChartPlotArea

All Implemented Interfaces: com.aspose.slides.ILayoutable, com.aspose.slides.IActualLayout

public interface IChartPlotArea extends ILayoutable, IActualLayout

Represents chart title properties.

Methods

MethodDescription
getFormat()Returns the format of a plot area.
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).
setLayoutTargetType(int value)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).

getFormat()

public abstract IFormat getFormat()

Returns the format of a plot area. Read-only IFormat.

Returns: IFormat

getLayoutTargetType()

public abstract int 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.getLayoutTargetType/#setLayoutTargetType(int).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

setLayoutTargetType(int value)

public abstract void setLayoutTargetType(int value)

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.getLayoutTargetType/#setLayoutTargetType(int).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();
  }

Parameters:

ParameterTypeDescription
valueint