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_IPresentationComponent
public final byte getType()
Returns a type of background fill.
Read/write BackgroundType
.
getType
in interface IBackground
public final void setType(byte value)
Returns a type of background fill.
Read/write BackgroundType
.
setType
in interface IBackground
public final IFillFormat getFillFormat()
Returns a FillFormat for BackgroundType.OwnBackground fill.
Read-only IFillFormat
.
getFillFormat
in interface IBackground
public final IEffectFormat getEffectFormat()
Returns a EffectFormat for BackgroundType.OwnBackground fill.
Read-only IEffectFormat
.
getEffectFormat
in interface IBackground
public final IColorFormat getStyleColor()
Return a ColorFormat for a BackgroundType.Themed fill.
Read-only IColorFormat
.
getStyleColor
in interface IBackground
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
.
getStyleIndex
in interface IBackground
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
.
setStyleIndex
in interface IBackground
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(); }
getEffective
in interface IBackground
IBackgroundEffectiveData
.public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject
.
getParent_Immediate
in class PVIObject
public final IBaseSlide getSlide()
Returns the parent slide of a shape.
Read-only IBaseSlide
.
getSlide
in interface ISlideComponent
getSlide
in class PVIObject
public final IPresentation getPresentation()
Returns the parent presentation of a slide.
Read-only IPresentation
.
getPresentation
in interface IPresentationComponent
getPresentation
in class PVIObject