Поделиться через


Fraction Class

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

Inheritance Hierarchy

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

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

Syntax

'Декларация
<ChildElementInfoAttribute(GetType(FractionProperties))> _
<ChildElementInfoAttribute(GetType(Numerator))> _
<ChildElementInfoAttribute(GetType(Denominator))> _
Public Class Fraction _
    Inherits OpenXmlCompositeElement
'Применение
Dim instance As Fraction
[ChildElementInfoAttribute(typeof(FractionProperties))]
[ChildElementInfoAttribute(typeof(Numerator))]
[ChildElementInfoAttribute(typeof(Denominator))]
public class Fraction : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • FractionProperties <m:fPr>

  • Numerator <m:num>

  • Denominator <m:den>

[ISO/IEC 29500-1 редакция 1]

22.1.2.36 f (Fraction Object)

This element specifies the fraction object, consisting of a numerator and denominator separated by a fraction bar. The fraction bar can be horizontal or diagonal, depending on the fraction properties. The fraction object is also used to represent the stack function, which places one element above another, with no fraction bar. [Example: Examples of fractions are:

Bar Fraction:

Skewed Fraction:

Linear Fraction:

No-Bar Fraction (Stack):

The fraction is represented as:

<m:f>
<m:fPr>
<m:type  m:val="skw"/>
</m:fPr>
  <m:num>
<m:r>
<m:t>a</m:t>
</m:r>
</m:num>
  <m:den>
<m:r>
<m:t>b</m:t>
</m:r>
</m:den>
</m:f>

end example]

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

den (Denominator)

§22.1.2.28

fPr (Fraction Properties)

§22.1.2.38

num (Numerator)

§22.1.2.75

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

© 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.

See Also

Reference

Fraction Members

DocumentFormat.OpenXml.Math Namespace