Phantom Class

Phantom Function.When the object is serialized out as xml, its qualified name is m:phant.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Math.Phantom

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

Syntax

声明
<ChildElementInfoAttribute(GetType(PhantomProperties))> _
<ChildElementInfoAttribute(GetType(Base))> _
Public Class Phantom _
    Inherits OpenXmlCompositeElement
用法
Dim instance As Phantom
[ChildElementInfoAttribute(typeof(PhantomProperties))]
[ChildElementInfoAttribute(typeof(Base))]
public class Phantom : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • PhantomProperties <m:phantPr>

  • Base <m:e>

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

22.1.2.81 phant (Phantom Object)

This element specifies the phantom object. This object has two primary uses: adding the spacing of the phantom base element e without displaying that base; and suppressing part of the glyphfor spacing considerations. [Example: In the right column below, the descender of the is suppressed (set to zero) while in the left column, it is shown. The presence or absence of the descender changes the shape of the .

Without <m:phant>

With <m:phant>

<m:rad>
  <m:radPr>
    <m:degHide m:val="1" /> 
  </m:radPr>
  <m:deg />
  <m:e>
    <m:r>
      <m:t>y</m:t> 
    </m:r>
  </m:e>

</m:rad>

<m:rad>
  <m:radPr>
    <m:degHide m:val="1" /> 
  </m:radPr>
  <m:deg />
  <m:e>
    <m:phant>
      <m:phantPr>
        <m:zeroDesc m:val="1" /> 
      </m:phantPr>
      <m:e>
        <m:r>
          <m:t>y</m:t> 
        </m:r>
      </m:e>
    </m:phant>
  </m:e>
</m:rad>

end example]

[Note: In typography, a glyph is the shape given in a particular typeface to a specific symbol. Most scripts share the notion of a baseline: an imaginary horizontal line on which characters rest. In some scripts, parts of glyphs lie below the baseline. The descent spans the distance between the baseline and the lowest descending glyph in a typeface, and the part of a glyph that descends below the baseline has the name descender. Conversely, the ascent spans the distance between the baseline and the top of the glyph that reaches farthest from the baseline. end note].

Parent Elements

deg (§22.1.2.26); del (§17.13.5.14); den (§22.1.2.28); e (§22.1.2.32); fName (§22.1.2.37); ins (§17.13.5.18); lim (§22.1.2.52); moveFrom (§17.13.5.22); moveTo (§17.13.5.25); num (§22.1.2.75); oMath (§22.1.2.77); sub (§22.1.2.112); sup (§22.1.2.114)

Child Elements

Subclause

e (Element (Argument))

§22.1.2.32

phantPr (Phantom Properties)

§22.1.2.82

[Note: The W3C XML Schema definition of this element's content model (CT_Phant) is located in §A.6.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

Phantom Members

DocumentFormat.OpenXml.Math Namespace