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

Result: MasterSlide

Error

ErrorCondition
PptxReadExceptionWhen external theme cannot be applied.

createThemeEffective

NameDescription
createThemeEffective()Returns an effective theme for this slide.

Result: ThemeEffectiveData


equals

NameDescription
equals(Slide)Determines whether the two IBaseSlide instances are equal. Returning value is calculated based on slide’s structure and static content. Two slides are equal if all shapes, styles, texts, animation and other settings. etc. are equal. The comparison doesn’t take into account unique identifier values, e.g. SlideId and dynamic content, e.g. current date value in Date Placeholder.

Parameters:

NameTypeDescription
slideSlideThe IBaseSlide to compare with the current IBaseSlide.

Result: boolean


equals

NameDescription
equals(MasterNotesSlide)Determines whether the two IBaseSlide instances are equal. Returning value is calculated based on slide’s structure and static content. Two slides are equal if all shapes, styles, texts, animation and other settings. etc. are equal. The comparison doesn’t take into account unique identifier values, e.g. SlideId and dynamic content, e.g. current date value in Date Placeholder.

Parameters:

NameTypeDescription
slideMasterNotesSlideThe IBaseSlide to compare with the current IBaseSlide.

Result: boolean


equals

NameDescription
equals(MasterSlide)Determines whether the two IBaseSlide instances are equal. Returning value is calculated based on slide’s structure and static content. Two slides are equal if all shapes, styles, texts, animation and other settings. etc. are equal. The comparison doesn’t take into account unique identifier values, e.g. SlideId and dynamic content, e.g. current date value in Date Placeholder.

Parameters:

NameTypeDescription
slideMasterSlideThe IBaseSlide to compare with the current IBaseSlide.

Result: boolean


equals

NameDescription
equals(LayoutSlide)Determines whether the two IBaseSlide instances are equal. Returning value is calculated based on slide’s structure and static content. Two slides are equal if all shapes, styles, texts, animation and other settings. etc. are equal. The comparison doesn’t take into account unique identifier values, e.g. SlideId and dynamic content, e.g. current date value in Date Placeholder.

Parameters:

NameTypeDescription
slideLayoutSlideThe IBaseSlide to compare with the current IBaseSlide.

Result: boolean


equals

NameDescription
equals(MasterHandoutSlide)Determines whether the two IBaseSlide instances are equal. Returning value is calculated based on slide’s structure and static content. Two slides are equal if all shapes, styles, texts, animation and other settings. etc. are equal. The comparison doesn’t take into account unique identifier values, e.g. SlideId and dynamic content, e.g. current date value in Date Placeholder.

Parameters:

NameTypeDescription
slideMasterHandoutSlideThe IBaseSlide to compare with the current IBaseSlide.

Result: boolean


equals

NameDescription
equals(NotesSlide)Determines whether the two IBaseSlide instances are equal. Returning value is calculated based on slide’s structure and static content. Two slides are equal if all shapes, styles, texts, animation and other settings. etc. are equal. The comparison doesn’t take into account unique identifier values, e.g. SlideId and dynamic content, e.g. current date value in Date Placeholder.

Parameters:

NameTypeDescription
slideNotesSlideThe IBaseSlide to compare with the current IBaseSlide.

Result: boolean


findShapeByAltText

NameDescription
findShapeByAltText(String)Finds first occurrence of a shape with the specified alternative text.

Parameters:

NameTypeDescription
altTextStringAlternative text.

Result: SummaryZoomSection, AutoShape, AudioFrame, OleObjectFrame, SummaryZoomFrame, ZoomFrame, GraphicalObject, PictureFrame, ZoomObject, VideoFrame, GeometryShape, SmartArtShape, SmartArt, Ink, Chart, GroupShape, Table, SectionZoomFrame, Shape, LegacyDiagram, Connector


getBackground

NameDescription
getBackground()Returns slide’s background. Read-only IBackground.

Result: Background


getBodyStyle

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

Result: TextStyle


getControls

NameDescription
getControls()Returns the collection of ActiveX controls on a slide. Read-only IControlCollection.

Result: ControlCollection


getCustomData

NameDescription
getCustomData()Returns the slide’s custom data. Read-only ICustomData.

Result: CustomData


getDependingSlides

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

Result: Slide


getHeaderFooterManager

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

Result: MasterSlideHeaderFooterManager


getHyperlinkQueries

NameDescription
getHyperlinkQueries()Provides easy access to contained hyperlinks. Read-only IHyperlinkQueries.

Result: HyperlinkQueries


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.

Result: MasterLayoutSlideCollection


getName

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

Result: String


getName

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

Result: String


getOtherStyle

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

Result: TextStyle


getParent_Immediate

NameDescription
getParent_Immediate()

getPresentation

NameDescription
getPresentation()Returns IPresentation interface. Read-only IPresentation.

Result: Presentation


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.

Result: boolean


getShapes

NameDescription
getShapes()Returns the shapes of a slide. Read-only IShapeCollection.

Result: ShapeCollection


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.

Result: boolean

Error

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

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.

Result: boolean

Error

ErrorCondition
NotSupportedExceptionThrown if set true for master slide.

getSlide

NameDescription
getSlide()

Result: Slide, MasterNotesSlide, BaseSlide, MasterSlide, LayoutSlide, MasterHandoutSlide, NotesSlide


getSlideId

NameDescription
getSlideId()Returns the ID of a slide. Read-only long.

Result: long


getSlideShowTransition

NameDescription
getSlideShowTransition()Returns the Transition object which contains information about how the specified slide advances during a slide show. Read-only ISlideShowTransition.

Result: SlideShowTransition


getThemeManager

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

Result: MasterThemeManager


getTimeline

NameDescription
getTimeline()Returns animation timeline object. Read-only IAnimationTimeLine.

Result: AnimationTimeLine


getTitleStyle

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

Result: TextStyle


hasDependingSlides

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

Result: boolean


joinPortionsWithSameFormatting

NameDescription
joinPortionsWithSameFormatting()Joins runs with same formatting in all paragraphs all acceptable shapes.

joinPortionsWithSameFormatting

NameDescription
joinPortionsWithSameFormatting(ShapeCollection)Joins runs with same formatting in all paragraphs in all acceptable shapes.

setName

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

setName

NameDescription
setName(String)Returns or sets the name of a 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.

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 true for master slide.