com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IChartPlotArea

    • Method Detail

      • getFormat

        IFormat getFormat()

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

      • getLayoutTargetType

        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()/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();
          }
          
      • setLayoutTargetType

        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()/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();
          }