TextStyles Class

Slide Master Text Styles.When the object is serialized out as xml, its qualified name is p:txStyles.

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

public class TextStyles : OpenXmlCompositeElement

The following table lists the possible child types:

  • TitleStyle <p:titleStyle>

  • BodyStyle <p:bodyStyle>

  • OtherStyle <p:otherStyle>

  • ExtensionList <p:extLst>

[ISO/IEC 29500-1 1st Edition] txStyles (Slide Master Text Styles)

This element specifies the text styles within a slide master. Within this element is the styling information for title text, the body text and other slide text as well. This element is only for use within the Slide Master and thus sets the text styles for the corresponding presentation slides.

[Example: Consider the case where we would like to specify the title text for a master slide.

    <a:lvl1pPr algn="ctr" rtl="0" latinLnBrk="0">
        <a:spcPct val="0"/>
      <a:defRPr sz="4400" kern="1200">
          <a:schemeClr val="tx1"/>
        <a:latin typeface="+mj-lt"/>
        <a:ea typeface="+mj-ea"/>
        <a:cs typeface="+mj-cs"/>

In the above example the title text is set according to the above formatting for all related slides within the presentation. end example]

Parent Elements

sldMaster (§

Child Elements


bodyStyle (Slide Master Body Text Style)


extLst (Extension List)


otherStyle (Slide Master Other Text Style)


titleStyle (Slide Master Title Text Style)


[Note: The W3C XML Schema definition of this element’s content model (CT_SlideMasterTextStyles) 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.

Community Additions