DisplayDefaults class

Office 2013 and later

Use Display Math Defaults. When the object is serialized out as xml, its qualified name is m:dispDef.

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

No code example is currently available or this language may not be supported.

[ISO/IEC 29500-1 1st Edition]

dispDef (Use Display Math Defaults)

This element specifies the document-level property to overwrite paragraph settings for mathematical text. When omitted, this element is set to 1 or true and special math settings are applied. Whether the element is absent or present without the val attribute, the default of the val attribute is 1 meaning that this option is applied.

[Example: The XML below demonstrates dispDef in use:

<m:mathPr>
  <m:mathFont m:val="Cambria Math"/>
  <m:brkBin m:val="before"/>
  <m:brkBinSub m:val="--"/>
  <m:smallFrac m:val="0"/>
  <m:dispDef/>
  <m:lMargin m:val="0"/>
  <m:rMargin m:val="0"/>
  <m:defJc m:val="centerGroup"/>
  <m:wrapIndent m:val="1440"/>
  <m:intLim m:val="subSup"/>
  <m:naryLim m:val="undOvr"/>
</m:mathPr>

end example]

Parent Elements

mathPr (§22.1.2.62)

Attributes

Description

val (value)

Specifies a binary value for the property defined by the parent XML element.

A value of 1 or true specifies that the property shall be explicitly applied. This is the default value for this attribute, and is implied when the parent element is present.

A value of 0 or false specifies that the property shall be explicitly turned off. This is implied when the parent element is not present.

The possible values for this attribute are defined by the ST_OnOff simple type (§22.9.2.7).

[Note: The W3C XML Schema definition of this element’s content model (CT_OnOff) 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.
Show: