Share via


Presentation Class

Presentation. It is the root element of PresentationPart.When the object is serialized out as xml, its qualified name is p:presentation.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.OpenXmlPartRootElement
        DocumentFormat.OpenXml.Presentation.Presentation

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(CustomerDataList))> _
<ChildElementInfoAttribute(GetType(DefaultTextStyle))> _
<ChildElementInfoAttribute(GetType(ModificationVerifier))> _
<ChildElementInfoAttribute(GetType(Kinsoku))> _
<ChildElementInfoAttribute(GetType(HandoutMasterIdList))> _
<ChildElementInfoAttribute(GetType(SlideIdList))> _
<ChildElementInfoAttribute(GetType(SlideSize))> _
<ChildElementInfoAttribute(GetType(NotesSize))> _
<ChildElementInfoAttribute(GetType(SmartTags))> _
<ChildElementInfoAttribute(GetType(EmbeddedFontList))> _
<ChildElementInfoAttribute(GetType(CustomShowList))> _
<ChildElementInfoAttribute(GetType(PresentationExtensionList))> _
<ChildElementInfoAttribute(GetType(NotesMasterIdList))> _
<ChildElementInfoAttribute(GetType(PhotoAlbum))> _
<ChildElementInfoAttribute(GetType(SlideMasterIdList))> _
Public Class Presentation _
    Inherits OpenXmlPartRootElement
'Usage
Dim instance As Presentation
[ChildElementInfoAttribute(typeof(CustomerDataList))]
[ChildElementInfoAttribute(typeof(DefaultTextStyle))]
[ChildElementInfoAttribute(typeof(ModificationVerifier))]
[ChildElementInfoAttribute(typeof(Kinsoku))]
[ChildElementInfoAttribute(typeof(HandoutMasterIdList))]
[ChildElementInfoAttribute(typeof(SlideIdList))]
[ChildElementInfoAttribute(typeof(SlideSize))]
[ChildElementInfoAttribute(typeof(NotesSize))]
[ChildElementInfoAttribute(typeof(SmartTags))]
[ChildElementInfoAttribute(typeof(EmbeddedFontList))]
[ChildElementInfoAttribute(typeof(CustomShowList))]
[ChildElementInfoAttribute(typeof(PresentationExtensionList))]
[ChildElementInfoAttribute(typeof(NotesMasterIdList))]
[ChildElementInfoAttribute(typeof(PhotoAlbum))]
[ChildElementInfoAttribute(typeof(SlideMasterIdList))]
public class Presentation : OpenXmlPartRootElement

Remarks

The following table lists the possible child types:

  • SlideMasterIdList <p:sldMasterIdLst>

  • NotesMasterIdList <p:notesMasterIdLst>

  • HandoutMasterIdList <p:handoutMasterIdLst>

  • SlideIdList <p:sldIdLst>

  • SlideSize <p:sldSz>

  • NotesSize <p:notesSz>

  • SmartTags <p:smartTags>

  • EmbeddedFontList <p:embeddedFontLst>

  • CustomShowList <p:custShowLst>

  • PhotoAlbum <p:photoAlbum>

  • CustomerDataList <p:custDataLst>

  • Kinsoku <p:kinsoku>

  • DefaultTextStyle <p:defaultTextStyle>

  • ModificationVerifier <p:modifyVerifier>

  • PresentationExtensionList <p:extLst>

[ISO/IEC 29500-1 1st Edition]

19.2.1.26 presentation (Presentation)

This element specifies within it fundamental presentation-wide properties.

[Example: Consider the following presentation with a single slide master and two slides. In addition to these commonly used elements there can also be the specification of other properties such as slide size, notes size and default text styles.

<p:presentation xmlns:a="" xmlns:r="" xmlns:p="">
    <p:sldMasterIdLst>
        <p:sldMasterId id="2147483648" r:id="rId1"/>
    </p:sldMasterIdLst>
    <p:sldIdLst>
        <p:sldId id="256" r:id="rId3"/>
        <p:sldId id="257" r:id="rId4"/>
    </p:sldIdLst>
    <p:sldSz cx="9144000" cy="6858000" type="screen4x3"/>
    <p:notesSz cx="6858000" cy="9144000"/>
    <p:defaultTextStyle>
      …
    </p:defaultTextStyle>
</p:presentation>

end example]

Parent Elements

Root element of PresentationML Presentation part

Child Elements

Subclause

custDataLst (Customer Data List)

§19.3.1.18

custShowLst (List of Custom Shows)

§19.2.1.7

defaultTextStyle (Presentation Default Text Style)

§19.2.1.8

embeddedFontLst (Embedded Font List)

§19.2.1.10

extLst (Extension List)

§19.2.1.12

handoutMasterIdLst (List of Handout Master IDs)

§19.2.1.15

kinsoku (Kinsoku Settings)

§19.2.1.17

modifyVerifier (Modification Verifier)

§19.2.1.19

notesMasterIdLst (List of Notes Master IDs)

§19.2.1.21

notesSz (Notes Slide Size)

§19.2.1.22

photoAlbum (Photo Album Information)

§19.2.1.24

sldIdLst (List of Slide IDs)

§19.2.1.34

sldMasterIdLst (List of Slide Master IDs)

§19.2.1.37

sldSz (Presentation Slide Size)

§19.2.1.39

smartTags (Smart Tags)

§19.2.1.40

Attributes

Description

autoCompressPictures (Automatically Compress Pictures)

Specifies whether the generating application should automatically compress all pictures for this presentation.

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

bookmarkIdSeed (Bookmark ID Seed)

Specifies a seed for generating bookmark IDs to ensure IDs remain unique across the document. This value specifies the number to be used as the ID for the next new bookmark created.

The possible values for this attribute are defined by the ST_BookmarkIdSeed simple type (§19.7.1).

compatMode (Compatibility Mode)

Specifies whether the generating application is to be in a compatibility mode which serves to inform the user of any loss of content or functionality when working with older formats.

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

conformance (Document Conformance Class)

Specifies the conformance class (§2.4) to which the PresentationML document conforms.

If this attribute is omitted, its default value is transitional.

[Example: Consider the following PresentationML Presentation part markup:

<p:presentation conformance="strict">

</p:presentation>

This document has a conformance attribute value of strict, therefore it conforms to the PML Strict conformance class. end example]

The possible values for this attribute are defined by the ST_ConformanceClass simple type (§22.9.2.2).

embedTrueTypeFonts (Embed True Type Fonts)

Specifies whether the generating application should automatically embed true type fonts or not.

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

firstSlideNum (First Slide Number)

Specifies the first slide number in the presentation.

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

removePersonalInfoOnSave (Remove Personal Information on Save)

Specifies whether to automatically remove personal information when the presentation document is saved.

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

rtl (Right-To-Left Views)

Specifies if the current view of the user interface is oriented right-to-left or left-to-right. The view is right-to-left is this value is set to true, and left-to-right otherwise.

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

saveSubsetFonts (Save Subset Fonts)

Specifies to save only the subset of characters used in the presentation when a font is embedded.

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

serverZoom (Server Zoom)

Specifies the scaling to be used when the presentation is embedded in another document. The embedded slides are to be scaled by this percentage.

The possible values for this attribute are defined by the ST_Percentage simple type (§20.1.10.40).

showSpecialPlsOnTitleSld (Show Header and Footer Placeholders on Titles)

Specifies whether to show the header and footer placeholders on the title slides.

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

strictFirstAndLastChars (Strict First and Last Characters)

Specifies whether to use strict characters for starting and ending lines of Japanese text.

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

Reference

Presentation Members

DocumentFormat.OpenXml.Presentation Namespace