com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface ISummaryZoomSectionCollection

    • Method Detail

      • get_Item

        ISummaryZoomSection get_Item(int index)

        Gets the element at the specified index. Read-only ISummaryZoomSection.


        The example demonstrates getting Summary Zoom Section element by index:
         
         Presentation pres = new Presentation("pres.pptx");
         try {
              ISummaryZoomFrame zoomFrame = (ISummaryZoomFrame)pres.getSlides().get_Item(1).getShapes().get_Item(0);
              ISummaryZoomSectionCollection collection = zoomFrame.getSummaryZoomCollection();
              ISummaryZoomSection zoomSection = collection.get_Item(1);
         } finally {
             if (pres != null) pres.dispose();
         }
         
      • addSummaryZoomSection

        ISummaryZoomSection addSummaryZoomSection(ISection section)

        Creates new Summary Zoom Section object and add it to the collection


        The example demonstrates getting Summary Zoom Section element by index:
         
         Presentation pres = new Presentation("pres.pptx");
         try {
              ISummaryZoomFrame zoomFrame = (ISummaryZoomFrame)pres.getSlides().get_Item(1).getShapes().get_Item(0);
              ISummaryZoomSectionCollection collection = zoomFrame.getSummaryZoomCollection();
              ISummaryZoomSection newZoomSection = collection.addSummaryZoomSection(pres.getSections().get_Item(3));
         } finally {
             if (pres != null) pres.dispose();
         }
         
        Parameters:
        section - Section for a new Summary Zoom Section element ISection


        If an element for this section already exists in the collection, the existing element is returned.
        Returns:
        Added ISummaryZoomFrame element
      • getSummarySection

        ISummaryZoomSection getSummarySection(ISection section)

        Returns Summary Zoom Section element for the given section.


        The example demonstrates getting Summary Zoom Section element by index:
         
         Presentation pres = new Presentation("pres.pptx");
         try {
              ISummaryZoomFrame zoomFrame = (ISummaryZoomFrame)pres.getSlides().get_Item(1).getShapes().get_Item(0);
              ISummaryZoomSectionCollection collection = zoomFrame.getSummaryZoomCollection();
              ISummaryZoomSection selectedObject = collection.getSummarySection(pres.getSections().get_Item(2));
         } finally {
             if (pres != null) pres.dispose();
         }
         
        Parameters:
        section - Section to find ISection
        Returns:
        ISummaryZoomSection or null if collection does not contains element for the section.
      • removeSummaryZoomSection

        void removeSummaryZoomSection(ISection section)

        Remove Summary Zoom Section object from the collection.


        The example demonstrates getting Summary Zoom Section element by index:
         
         Presentation pres = new Presentation("pres.pptx");
         try {
              ISummaryZoomFrame zoomFrame = (ISummaryZoomFrame)pres.getSlides().get_Item(1).getShapes().get_Item(0);
              ISummaryZoomSectionCollection collection = zoomFrame.getSummaryZoomCollection();
              collection.removeSummaryZoomSection(pres.getSections().get_Item(1));
         } finally {
             if (pres != null) pres.dispose();
         }
         
        Parameters:
        section - Section for which the Summary Zoom Section element is to be removed ISection.
      • indexOf

        int indexOf(ISummaryZoomSection summaryZoomSection)

        Returns an index of the specified SummaryZoomSection object.


        The example demonstrates getting Summary Zoom Section element by index:
         
         Presentation pres = new Presentation("pres.pptx");
         try {
              ISummaryZoomFrame zoomFrame = (ISummaryZoomFrame)pres.getSlides().get_Item(1).getShapes().get_Item(0);
              ISummaryZoomSectionCollection collection = zoomFrame.getSummaryZoomCollection();
              ISummaryZoomSection selectedObject = collection.getSummarySection(pres.getSections().get_Item(2));
              int idx = collection.indexOf(selectedObject);
         } finally {
             if (pres != null) pres.dispose();
         }
         
        Parameters:
        summaryZoomSection - SummaryZoomSection object to find ISummaryZoomSection.
        Returns:
        Index of a SummaryZoomSection object or -1 if SummaryZoomSection object not from this collection.
      • clear

        void clear()

        Removes all SummaryZoomSection objects from the collection.


        The example demonstrates getting Summary Zoom Section element by index:
         
         Presentation pres = new Presentation("pres.pptx");
         try {
              ISummaryZoomFrame zoomFrame = (ISummaryZoomFrame)pres.getSlides().get_Item(1).getShapes().get_Item(0);
              ISummaryZoomSectionCollection collection = zoomFrame.getSummaryZoomCollection();
              collection.clear();
         } finally {
             if (pres != null) pres.dispose();
         }