ViewProperties Class

Presentation-wide View Properties. It is the root element of ViewPropertiesPart.When the object is serialized out as xml, its qualified name is p:viewPr.

Inheritance Hierarchy


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


<ChildElementInfoAttribute(GetType(SorterViewProperties))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
<ChildElementInfoAttribute(GetType(GridSpacing))> _
<ChildElementInfoAttribute(GetType(NormalViewProperties))> _
<ChildElementInfoAttribute(GetType(SlideViewProperties))> _
<ChildElementInfoAttribute(GetType(OutlineViewProperties))> _
<ChildElementInfoAttribute(GetType(NotesTextViewProperties))> _
<ChildElementInfoAttribute(GetType(NotesViewProperties))> _
Public Class ViewProperties _
    Inherits OpenXmlPartRootElement
Dim instance As ViewProperties
public class ViewProperties : OpenXmlPartRootElement


The following table lists the possible child types:

  • NormalViewProperties <p:normalViewPr>

  • SlideViewProperties <p:slideViewPr>

  • OutlineViewProperties <p:outlineViewPr>

  • NotesTextViewProperties <p:notesTextViewPr>

  • SorterViewProperties <p:sorterViewPr>

  • NotesViewProperties <p:notesViewPr>

  • GridSpacing <p:gridSpacing>

  • ExtensionList <p:extLst>

[ISO/IEC 29500-1 1st Edition] viewPr (Presentation-wide View Properties)

This element functions as a parent element within which all presentation-wide view properties are contained. All properties and their corresponding settings are defined within the child elements.

Parent Elements

Root element of PresentationML View Properties part

Child Elements


extLst (Extension List)


gridSpacing (Grid Spacing)


normalViewPr (Normal View Properties)


notesTextViewPr (Notes Text View Properties)


notesViewPr (Notes View Properties)


outlineViewPr (Outline View Properties)


slideViewPr (Slide View Properties)


sorterViewPr (Slide Sorter View Properties)




lastView (Last View)

Specifies the view mode that was used when the presentation document was last saved.

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

showComments (Show Comments)

Specifies whether the slide comments should be shown.

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


ViewProperties Members

DocumentFormat.OpenXml.Presentation Namespace