View-Klasse
Document View Setting.When the object is serialized out as xml, its qualified name is w:view.
Vererbungshierarchie
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.View
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Class View _
Inherits OpenXmlLeafElement
'Usage
Dim instance As View
public class View : OpenXmlLeafElement
Hinweise
[ISO/IEC 29500-1 1. Ausgabe]
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:
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. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.