public class MasterSlide extends BaseSlide implements IMasterSlide
Represents a master slide in a presentation.
| Modifier and Type | Method and Description |
|---|---|
IMasterSlide |
applyExternalThemeToDependingSlides(java.lang.String fname)
Creates a new master slide based on the current one, applying an external theme to it
and applies the created master slide to all dependent slides.
|
ITextStyle |
getBodyStyle()
Returns the style of a body text.
|
ISlide[] |
getDependingSlides()
Returns an array with all slides, which depend on this master slide.
|
IMasterSlideHeaderFooterManager |
getHeaderFooterManager()
Returns HeaderFooter manager of the master slide.
|
IMasterLayoutSlideCollection |
getLayoutSlides()
Returns the collection of child layout slides for this master slide.
|
java.lang.String |
getName()
Returns or sets the name of a master slide.
|
ITextStyle |
getOtherStyle()
Returns the style of an other text.
|
boolean |
getPreserve()
Determines whether the corresponding master is deleted when all the slides that follow that master are deleted.
|
boolean |
getShowMasterShapes()
Specifies if shapes on the master slide should be shown on slides or not.
|
IMasterThemeManager |
getThemeManager()
Returns the theme manager.
|
ITextStyle |
getTitleStyle()
Returns the style of a title text.
|
boolean |
hasDependingSlides()
Returns true if there exists at least one slide that depends on this master slide.
|
void |
setName(java.lang.String value)
Returns or sets the name of a master slide.
|
void |
setPreserve(boolean value)
Determines whether the corresponding master is deleted when all the slides that follow that master are deleted.
|
void |
setShowMasterShapes(boolean value)
Specifies if shapes on the master slide should be shown on slides or not.
|
createThemeEffective, equals, findShapeByAltText, getBackground, getControls, getCustomData, getHyperlinkQueries, getParent_Immediate, getPresentation, getShapes, getSlide, getSlideId, getSlideShowTransition, getTimeline, joinPortionsWithSameFormatting, joinPortionsWithSameFormattingequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, findShapeByAltText, getBackground, getControls, getCustomData, getHyperlinkQueries, getShapes, getSlideId, getSlideShowTransition, getTimeline, joinPortionsWithSameFormattingcreateThemeEffectivegetSlidegetPresentationpublic final IMasterSlideHeaderFooterManager getHeaderFooterManager()
Returns HeaderFooter manager of the master slide.
Read-only IMasterSlideHeaderFooterManager.
getHeaderFooterManager in interface IMasterSlidepublic final IMasterSlide applyExternalThemeToDependingSlides(java.lang.String fname)
Creates a new master slide based on the current one, applying an external theme to it and applies the created master slide to all dependent slides.
applyExternalThemeToDependingSlides in interface IMasterSlidefname - Path to the external theme file (.thmx).PptxReadException - When external theme cannot be applied.public final ITextStyle getTitleStyle()
Returns the style of a title text.
Read-only ITextStyle.
getTitleStyle in interface IMasterSlidepublic final ITextStyle getBodyStyle()
Returns the style of a body text.
Read-only ITextStyle.
getBodyStyle in interface IMasterSlidepublic final ITextStyle getOtherStyle()
Returns the style of an other text.
Read-only ITextStyle.
getOtherStyle in interface IMasterSlidepublic final IMasterLayoutSlideCollection getLayoutSlides()
Returns the collection of child layout slides for this master slide.
Read-only IMasterLayoutSlideCollection.
IPresentation.getLayoutSlides()) property.
getLayoutSlides in interface IMasterSlidepublic final boolean getPreserve()
Determines whether the corresponding master is deleted when all the slides that follow that master are deleted.
Note: Aspose.Slides will never remove any unused master by itself, to actually remove unused masters call MasterSlideCollection.removeUnused(boolean)
Read/write boolean.
getPreserve in interface IMasterSlidepublic final void setPreserve(boolean value)
Determines whether the corresponding master is deleted when all the slides that follow that master are deleted.
Note: Aspose.Slides will never remove any unused master by itself, to actually remove unused masters call MasterSlideCollection.removeUnused(boolean)
Read/write boolean.
setPreserve in interface IMasterSlidepublic final ISlide[] getDependingSlides()
Returns an array with all slides, which depend on this master slide.
getDependingSlides in interface IMasterSlideISlidepublic final boolean hasDependingSlides()
Returns true if there exists at least one slide that depends on this master slide.
Read-only boolean.
hasDependingSlides in interface IMasterSlidepublic final IMasterThemeManager getThemeManager()
Returns the theme manager.
Read-only IMasterThemeManager.
getThemeManager in interface IMasterThemeablepublic java.lang.String getName()
Returns or sets the name of a master slide.
Read/write String.
getName in interface IBaseSlidegetName in class BaseSlidepublic void setName(java.lang.String value)
Returns or sets the name of a master slide.
Read/write String.
setName in interface IBaseSlidesetName in class BaseSlidepublic boolean getShowMasterShapes()
Specifies if shapes on the master slide should be shown on slides or not.
For master slide itself this property always returns false.
Read/write boolean.
getShowMasterShapes in interface IBaseSlidegetShowMasterShapes in class BaseSlidecom.aspose.ms.System.NotSupportedException - Thrown if set true for master slide.public void setShowMasterShapes(boolean value)
Specifies if shapes on the master slide should be shown on slides or not.
For master slide itself this property always returns false.
Read/write boolean.
setShowMasterShapes in interface IBaseSlidesetShowMasterShapes in class BaseSlidecom.aspose.ms.System.NotSupportedException - Thrown if set true for master slide.Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.