Share via


View Class

Document View Setting.When the object is serialized out as xml, its qualified name is w:view.

Inheritance Hierarchy

System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.View

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

Syntax

'宣言
Public Class View _
    Inherits OpenXmlLeafElement
'使用
Dim instance As View
public class View : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 初版]

17.15.1.92 view (Document View Setting)

This element specifies the manner in which the contents of this document should be displayed when opened by an application.

If this element is omitted, then an application can view the document in any desired default state.

[Example: Consider a WordprocessingML document that must be displayed on the screen in the same form as it is printed. This requirement would be specified using the following WordprocessingML in the document settings:

<w:view w:val="print" /> 

The view element's val attribute is equal to print specifying that the given WordprocessingML document must be rendered as it is printed. end example]

Parent Elements

settings (§17.15.1.78)

Attributes

Description

val (Document View Setting Value)

Specifies the view which shall be used to render the contents of a WordprocessingML document.

Applications can omit support for one or more of the views defined by the ST_View simple type (referenced below). If a WordprocessingML document containing an unsupported view is loaded by an application, it shall fall back to its default view (equivalent to use of the enumeration value none).

[Example: Consider a WordprocessingML document that must be rendered in a view meant to mimic how the document would look in a web browser (i.e. without a fixed page width). This requirement would be specified using the following WordprocessingML in the document settings:

<w:view w:val="web" /> 

The val attribute is equal to web specifying that the given WordprocessingML document must be rendered in a view mimicking web page display. end example]

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

[Note: The W3C XML Schema definition of this element's content model (CT_View) is located in §A.1. end note]

© ISO/IEC29500: 2008. 上記の引用はマイクロソフト (またはその代理) によって英語から日本語に翻訳されたものであり、ISO はこうした翻訳に対する責任を一切負いません。

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

View Members

DocumentFormat.OpenXml.Wordprocessing Namespace