FractionType class

Office 2013 and later

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

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

public class FractionType : OpenXmlLeafElement

[ISO/IEC 29500-1 1st Edition]

type (Fraction type)

This element specifies the type of fraction f; the default is 'bar'. Whether the element is absent or present without the val attribute, the default of the val attribute is bar. Fractions types are:

Stacked Fraction:

Skewed Fraction:

Linear Fraction:

Stack Object (No-Bar Fraction):


is represented by the following XML:

    <m:type m:val="skw"/>

end example]

Parent Elements

fPr (§



val (Value)

Specifies the type of fraction. Possible values are bar (Bar Fraction), lin (Linear Fraction), noBar (No-Bar Fraction (Stack)), and skw (Skewed).

The possible values for this attribute are defined by the ST_FType simple type (§

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

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.