DefaultJustification Class

Default Justification.When the object is serialized out as xml, its qualified name is m:defJc.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Math.OfficeMathJustificationType
        DocumentFormat.OpenXml.Math.DefaultJustification

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

Syntax

'Declaration
Public Class DefaultJustification _
    Inherits OfficeMathJustificationType
'Usage
Dim instance As DefaultJustification
public class DefaultJustification : OfficeMathJustificationType

Remarks

[ISO/IEC 29500-1 1st Edition]

22.1.2.25 defJc (Default Justification)

This element specifies the default justification of display math, at the document level. Individual instances of mathematical text can overrule the default setting. If this element is omitted, the default justification is centerGroup. Whether the element is absent or present without the val attribute, the default of the val attribute is centerGroup.

Display math can be left justified, right justified, centered, or centered as a group. When display math is centered as a group, the mathematical text is left aligned within a block, and the entire block is centered with respect to column margins. If this element is omitted, the mathematical text is centered as a group.

[Example: The XML below demonstrates defJc 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 the default justification of mathematical text in the document. Possible values are center, centerGroup, left, and right.

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

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

DefaultJustification Members

DocumentFormat.OpenXml.Math Namespace