BreakBinary class

Office 2013 and later

Break on Binary Operators. When the object is serialized out as xml, its qualified name is m:brkBin.

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

public class BreakBinary : OpenXmlLeafElement

[ISO/IEC 29500-1 1st Edition]

brkBin (Break on Binary Operators)

This element specifies how binary operators are treated when they coincide with a line break. If this element is omitted, the line break occurs before the binary operator. That is, the binary operator is the first element on the wrapped line.

Whether the element is absent or present without the val attribute, the default of the val attribute is before.

[Example: For example:




The above examples demonstrate how such an equation would look depending on the value of the brkBin document-property. These actual examples do not rely on the brkBin property of this document to maintain their configurations. This would be impossible because the brkBin property can only be set to one value for an entire document at any given time. Here we are demonstrating all three.

The XML below demonstrates brkBin in use under mathPr:

  <m:mathFont m:val="Cambria Math"/>
  <m:brkBin m:val="before"/>
  <m:brkBinSub m:val="--"/>
  <m:smallFrac m:val="0"/>
  <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"/>

end example]

Parent Elements

mathPr (§



val (Value)

Specifies where to break on binary operators. Possible values are before, after, and repeat.

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

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