WordPerfectSpaceWidth Class
Space width.When the object is serialized out as xml, its qualified name is w:wpSpaceWidth.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.OnOffType
DocumentFormat.OpenXml.Wordprocessing.WordPerfectSpaceWidth
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
声明
Public Class WordPerfectSpaceWidth _
Inherits OnOffType
用法
Dim instance As WordPerfectSpaceWidth
public class WordPerfectSpaceWidth : OnOffType
Remarks
[ISO/IEC 29500-1 第 1 个版本]
9.7.3.57 wpSpaceWidth (Use Specific Space Width)
(The terms ascent and descent are used as defined in ISO/IEC 14496-22:2007.)
This element specifies that applications should perform determine the width of the space character for all proportional fonts used in this document using the calculation specified below.
Typically, applications calculate the width of a whitespace character dynamically to optimize for the output device. This element, when present with a val attribute value of true (or equivalent), specifies that applications should instead use the following algorithm to determine the width of a whitespace character:
where
is the width of a space character
is the ascent for the font
is the descent for the font
[Example: Consider a WordprocessingML document with this compatibility setting turned on:
<w:compat>
<w:suppressTopSpacingWP />
</w:compat>
If the font applied to a run specified an ascent value of 8 points and a descent value of 2 points, each space in that run would have a width of three and one-third points. end example]
Parent Elements |
---|
compat (Part 1, §17.15.1.21) |
This element's content model is defined by the common boolean property definition in Part 1, §17.17.4.
© 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.