SlideMaster Class

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

Inheritance Hierarchy


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


<ChildElementInfoAttribute(GetType(ExtensionListWithModification))> _
<ChildElementInfoAttribute(GetType(CommonSlideData))> _
<ChildElementInfoAttribute(GetType(ColorMap))> _
<ChildElementInfoAttribute(GetType(SlideLayoutIdList))> _
<ChildElementInfoAttribute(GetType(Transition))> _
<ChildElementInfoAttribute(GetType(Timing))> _
<ChildElementInfoAttribute(GetType(HeaderFooter))> _
<ChildElementInfoAttribute(GetType(TextStyles))> _
Public Class SlideMaster _
    Inherits OpenXmlPartRootElement
Dim instance As SlideMaster
public class SlideMaster : OpenXmlPartRootElement


The following table lists the possible child types:

  • CommonSlideData <p:cSld>

  • ColorMap <p:clrMap>

  • SlideLayoutIdList <p:sldLayoutIdLst>

  • Transition <p:transition>

  • Timing <p:timing>

  • HeaderFooter <p:hf>

  • TextStyles <p:txStyles>

  • ExtensionListWithModification <p:extLst>

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

Thread Safety

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

See Also


SlideMaster Members

DocumentFormat.OpenXml.Presentation Namespace