SlideMaster class

Office 2013 and later

Slide Master. The root element of SlideMasterPart. When the object is serialized out as xml, its qualified name is p:sldMaster.

Namespace:  DocumentFormat.OpenXml.Presentation
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class SlideMaster : OpenXmlPartRootElement

[ISO/IEC 29500-1 1st Edition]

sldMaster (Slide Master)

This element specifies an instance of a slide master slide. Within a slide master slide are contained all elements that describe the objects and their corresponding formatting for within a presentation slide. Within a slide master slide are two main elements. The cSld element specifies the common slide elements such as shapes and their attached text bodies. Then the txStyles element specifies the formatting for the text within each of these shapes. The other properties within a slide master slide specify other properties for within a presentation slide such as color information, headers and footers, as well as timing and transition information for all corresponding presentation slides.

Parent Elements

Root element of PresentationML Slide Master part

Child Elements


clrMap (Color Scheme Map)


cSld (Common Slide Data)


extLst (Extension List with Modification Flag)


hf (Header/Footer information for a slide master)


sldLayoutIdLst (List of Slide Layouts)


timing (Slide Timing Information for a Slide Layout)


transition (Slide Transition for a Slide Layout)


txStyles (Slide Master Text Styles)




preserve (Preserve Slide Master)

Specifies whether the corresponding slide layout is deleted when all the slides that follow that layout are deleted. If this attribute is not specified then a value of false should be assumed by the generating application. This would mean that the slide would in fact be deleted if no slides within the presentation were related to it.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

[Note: The W3C XML Schema definition of this element’s content model (CT_SlideMaster) is located in §A.3. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.