共用方式為


FractionProperties Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(ControlProperties))> _
<ChildElementInfoAttribute(GetType(FractionType))> _
Public Class FractionProperties _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As FractionProperties
[ChildElementInfoAttribute(typeof(ControlProperties))]
[ChildElementInfoAttribute(typeof(FractionType))]
public class FractionProperties : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • FractionType <m:type>

  • ControlProperties <m:ctrlPr>

[ISO/IEC 29500-1 1st Edition]

22.1.2.38 fPr (Fraction Properties)

This element specifies the properties of the fraction object f. Properties of the Fraction object include the type or style of the fraction. 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 linear fraction is represented by the following XML:

<m:f>
  <m:fPr>
    <m:type m:val="lin"/>
  </m:fPr>
  <m:num>
    <m:r>
      <m:t>c</m:t>
    </m:r>
  </m:num>
  <m:den>
    <m:r>
      <m:t>d</m:t>
    </m:r>
  </m:den>
</m:f>

end example]

Parent Elements

f (§22.1.2.36)

Child Elements

Subclause

ctrlPr (Control Properties)

§22.1.2.23

type (Fraction type)

§22.1.2.118

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

© ISO/IEC29500: 2008.

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

FractionProperties Members

DocumentFormat.OpenXml.Math Namespace