BreakBinary Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Math.BreakBinary

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

Syntax

'Declaration
Public Class BreakBinary _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As BreakBinary
public class BreakBinary : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 1st Edition]

22.1.2.16 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:

before

after

repeat

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: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 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 (§22.1.3.1).

[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.

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

BreakBinary Members

DocumentFormat.OpenXml.Math Namespace