TargetScreenSize Class

Target Screen Size for Web Page.When the object is serialized out as xml, its qualified name is w:targetScreenSz.

Inheritance Hierarchy

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

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

Syntax

声明
Public Class TargetScreenSize _
    Inherits OpenXmlLeafElement
用法
Dim instance As TargetScreenSize
public class TargetScreenSize : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 第 1 个版本]

17.15.2.42 targetScreenSz (Target Screen Size for Web Page)

This element specifies the ideal minimum target screen size (width by height, specified in pixels) on which web pages generated when saving this document is displayed. This setting can be used to optimize the output of web pages produced from this document.

If this element is omitted, then the target screen size for web pages produced from this document shall be assumed to be 800x600.

[Example: Consider a WordprocessingML document which contains the following content within the web settings part:

<w:webSettings>
<w:targetScreenSz w:val="1600x1200" />
</w:webSettings>

The targetScreenSz element's val attribute has a value of 1600x1200, which specifies that a target screen size of 1600 by 1200 pixels must be assumed when saving this document as a web page. end example]

Parent Elements

webSettings (§17.15.2.46)

Attributes

Description

val (Target Screen Size Value)

Specifies the target screen size for web pages produced by this document, as defined by the simple type referenced below.

[Example: Consider a WordprocessingML document which contains the following content within the web settings part:

<w:webSettings>
<w:targetScreenSz w:val="1024x768" />
</w:webSettings>

The val attribute has a value of 1024x768, which specifies that a target screen size of 1024 by 768 pixels must be assumed when saving this document as a web page. end example]

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

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

© ISO/IEC29500: 2008. 以上摘要已经由 Microsoft(和/或其代理公司)从英语翻译为简体中文,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

TargetScreenSize Members

DocumentFormat.OpenXml.Wordprocessing Namespace