public class Background extends PVIObject implements IBackground
Represents background of a slide.
| Modifier and Type | Method and Description |
|---|---|
IEffectFormat |
getEffectFormat()
Returns a EffectFormat for BackgroundType.OwnBackground fill.
|
IBackgroundEffectiveData |
getEffective()
Gets effective background data with the inheritance applied.
|
IFillFormat |
getFillFormat()
Returns a FillFormat for BackgroundType.OwnBackground fill.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
IPresentation |
getPresentation()
Returns the parent presentation of a slide.
|
IBaseSlide |
getSlide()
Returns the parent slide of a shape.
|
IColorFormat |
getStyleColor()
Return a ColorFormat for a BackgroundType.Themed fill.
|
int |
getStyleIndex()
Returns an index of BackgroundType.Themed fill in background theme collection.
|
byte |
getType()
Returns a type of background fill.
|
void |
setStyleIndex(int value)
Returns an index of BackgroundType.Themed fill in background theme collection.
|
void |
setType(byte value)
Returns a type of background fill.
|
equals, getParent_IPresentationComponent, getParent_ISlideComponent, getVersion, hashCode, reset_Parent_IPresentationComponentpublic final byte getType()
Returns a type of background fill.
Read/write BackgroundType.
getType in interface IBackgroundpublic final void setType(byte value)
Returns a type of background fill.
Read/write BackgroundType.
setType in interface IBackgroundpublic final IFillFormat getFillFormat()
Returns a FillFormat for BackgroundType.OwnBackground fill.
Read-only IFillFormat.
getFillFormat in interface IBackgroundpublic final IEffectFormat getEffectFormat()
Returns a EffectFormat for BackgroundType.OwnBackground fill.
Read-only IEffectFormat.
getEffectFormat in interface IBackgroundpublic final IColorFormat getStyleColor()
Return a ColorFormat for a BackgroundType.Themed fill.
Read-only IColorFormat.
getStyleColor in interface IBackgroundpublic final int getStyleIndex()
Returns an index of BackgroundType.Themed fill in background theme collection.
0 means no fill.
1..999 - index.
Read/write int.
getStyleIndex in interface IBackgroundpublic 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.
setStyleIndex in interface IBackgroundpublic 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(); }
getEffective in interface IBackgroundIBackgroundEffectiveData.public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject.
getParent_Immediate in class PVIObjectpublic final IBaseSlide getSlide()
Returns the parent slide of a shape.
Read-only IBaseSlide.
getSlide in interface ISlideComponentgetSlide in class PVIObjectpublic final IPresentation getPresentation()
Returns the parent presentation of a slide.
Read-only IPresentation.
getPresentation in interface IPresentationComponentgetPresentation in class PVIObject