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

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

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

Syntax

'Declaration
<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
'Usage
Dim instance As ViewProperties
[ChildElementInfoAttribute(typeof(SorterViewProperties))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
[ChildElementInfoAttribute(typeof(GridSpacing))]
[ChildElementInfoAttribute(typeof(NormalViewProperties))]
[ChildElementInfoAttribute(typeof(SlideViewProperties))]
[ChildElementInfoAttribute(typeof(OutlineViewProperties))]
[ChildElementInfoAttribute(typeof(NotesTextViewProperties))]
[ChildElementInfoAttribute(typeof(NotesViewProperties))]
public class ViewProperties : OpenXmlPartRootElement

Remarks

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]

19.2.2.18 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

Subclause

extLst (Extension List)

§19.2.1.12

gridSpacing (Grid Spacing)

§19.2.2.3

normalViewPr (Normal View Properties)

§19.2.2.6

notesTextViewPr (Notes Text View Properties)

§19.2.2.7

notesViewPr (Notes View Properties)

§19.2.2.8

outlineViewPr (Outline View Properties)

§19.2.2.10

slideViewPr (Slide View Properties)

§19.2.2.16

sorterViewPr (Slide Sorter View Properties)

§19.2.2.17

Attributes

Description

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

Reference

ViewProperties Members

DocumentFormat.OpenXml.Presentation Namespace