com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class Background

    • Method Detail

      • setType

        public final void setType(byte value)

        Returns a type of background fill. Read/write BackgroundType.

        Specified by:
        setType in interface IBackground
      • getStyleIndex

        public final int getStyleIndex()

        Returns an index of BackgroundType.Themed fill in background theme collection. 0 means no fill. 1..999 - index. Read/write int.

        Specified by:
        getStyleIndex in interface IBackground
      • setStyleIndex

        public final void setStyleIndex(int value)

        Returns an index of BackgroundType.Themed fill in background theme collection. 0 means no fill. 1..999 - index. Read/write int.

        Specified by:
        setStyleIndex in interface IBackground
      • getEffective

        public final IBackgroundEffectiveData getEffective()

        Gets effective background data with the inheritance applied.


         This example demonstrates getting effective background properties.
         
         Presentation pres = new Presentation("MyPresentation.pptx");
         try
         {
                IBackgroundEffectiveData effectiveBackground = pres.getSlides().get_Item(0).getBackground().getEffective();
                System.out.println("Background fill type: " + effectiveBackground.getFillFormat().getFillType());
                System.out.println("Any effects applied: " + !effectiveBackground.getEffectFormat().isNoEffects());
         } finally {
          if (pres != null) pres.dispose();
         }
         

        Specified by:
        getEffective in interface IBackground
        Returns:
        A IBackgroundEffectiveData.
      • getParent_Immediate

        public final com.aspose.slides.IDOMObject getParent_Immediate()

        Returns Parent_Immediate object. Read-only IDOMObject.

        Overrides:
        getParent_Immediate in class PVIObject