MasterSlide

MasterSlide class

Represents a master slide in a presentation.

applyExternalThemeToDependingSlides

NameDescription
applyExternalThemeToDependingSlides (String)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.

Parameters:

NameTypeDescription
fnameStringPath to the external theme file (.thmx).

Returns: MasterSlide

Error

ErrorCondition
PptxReadExceptionWhen external theme cannot be applied.

getBodyStyle

NameDescription
getBodyStyle ()Returns the style of a body text. Read-only ITextStyle.

Returns: TextStyle


getDependingSlides

NameDescription
getDependingSlides ()Returns an array with all slides, which depend on this master slide.

Returns: Slide


getHeaderFooterManager

NameDescription
getHeaderFooterManager ()Returns HeaderFooter manager of the master slide. Read-only IMasterSlideHeaderFooterManager.

Returns: MasterSlideHeaderFooterManager


getLayoutSlides

NameDescription
getLayoutSlides ()Returns the collection of child layout slides for this master slide. Read-only IMasterLayoutSlideCollection. You can access to alternative API for adding/inserting/removing/cloning layout slides by using ( IPresentation#getLayoutSlides) property.

Returns: MasterLayoutSlideCollection


getName

NameDescription
getName ()Returns or sets the name of a master slide. Read/write String.

Returns: String


getOtherStyle

NameDescription
getOtherStyle ()Returns the style of an other text. Read-only ITextStyle.

Returns: TextStyle


getPreserve

NameDescription
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.

Returns: boolean


getShowMasterShapes

NameDescription
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.

Returns: boolean

Error

ErrorCondition
NotSupportedExceptionThrown if set {@code true} for master slide.

getThemeManager

NameDescription
getThemeManager ()Returns the theme manager. Read-only IMasterThemeManager.

Returns: MasterThemeManager


getTitleStyle

NameDescription
getTitleStyle ()Returns the style of a title text. Read-only ITextStyle.

Returns: TextStyle


hasDependingSlides

NameDescription
hasDependingSlides ()Returns true if there exists at least one slide that depends on this master slide. Read-only boolean.

Returns: boolean


setName

NameDescription
setName (String)Returns or sets the name of a master slide. Read/write String.

setPreserve

NameDescription
setPreserve (boolean)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.

setShowMasterShapes

NameDescription
setShowMasterShapes (boolean)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.

Error

ErrorCondition
NotSupportedExceptionThrown if set {@code true} for master slide.