MacWordSmallCaps Class
Emulate Word 5.x for the Macintosh Small Caps Formatting.When the object is serialized out as xml, its qualified name is w:mwSmallCaps.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.OnOffType
DocumentFormat.OpenXml.Wordprocessing.MacWordSmallCaps
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'宣言
Public Class MacWordSmallCaps _
Inherits OnOffType
'使用
Dim instance As MacWordSmallCaps
public class MacWordSmallCaps : OnOffType
Remarks
[ISO/IEC 29500-1 初版]
9.7.3.26 mwSmallCaps (Use Specific Small Caps Algorithm)
This element specifies that applications should use a specific algorithm to determine the font size of small caps (the formatting resulting from the use of the smallCaps element (Part 1, §17.3.2.33). This emulation typically results in small caps which are smaller than typical small caps at most font sizes.
Typically, applications can utilize any algorithm that results in small caps formatting. This element, when present with a val attribute value of true (or equivalent), specifies that applications should determine the font size for small caps using the following algorithm:
If , then the font size for small caps is 7 points.
Otherwise, sequentially iterate through until , at which point the font size for small caps is points.
where
is an array defined as follows: where .
is an integer calculated as follows: The font size of the run to which small caps formatting is applied (in points).
[Example: Consider a WordprocessingML document with small caps on its text contents.
If this compatibility setting is turned on:
<w:compat>
<w:mwSmallCaps />
</w:compat>
And the font size for a single run is 16 points, and performing the algorithm above would result in 14 points as the calculated font size for small caps. 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. 上記の引用はマイクロソフト (またはその代理) によって英語から日本語に翻訳されたものであり、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.