Break class

Office 2013 and later

Break. When the object is serialized out as xml, its qualified name is m:brk.

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

public class Break : OpenXmlLeafElement

[ISO/IEC 29500-1 1st Edition]

brk (Break)

This element specifies whether there is a line break at the start of a run, or at the start of the Box object, such that the line wraps at the start of the run or box object. These user-defined line breaks occur when the XML tag <m:brk/> is encountered and does not follow a mathematical "order of precedence". If this element is omitted, a manual break is not inserted. In other words, when the element is absent, the default is for the parent structure to not manually break onto the next line. When the element is present and the val attribute is absent, the default of the val attribute is 0 meaning that this property’s parent structure manually breaks onto the next line and is aligned with the beginning of the previous line.

The line may happen to wrap at this point if the mathematical text exceeds the column width. OMML does not specify behaviour for any kind of automatic line breaking. Instead it delegates this functionality to the underlying rendering engine similarly to how it does with the choice of operator spacing and the determination of whether an operator is unary or binary.

[Example: The following example includes a manual user-defined line break at the operator emulator:

<m:r>   <m:t>a</m:t>

There is a break on the == symbol so a manual line break occurs right before the == symbol.

end example]

Parent Elements

boxPr (§; rPr (§



alnAt (Index of Operator to Align To)

Specifies the index of the operator on the previous line of mathematical text which shall be used as the alignment point for the current line of mathematical text . A line can be aligned to any operator on the previous line; this attribute specifies exactly which operator shall be the target of that alignment in cases where there are multiple operators. If alnAt is omitted, then all runs (r tag) that follow a brk tag will align with the left margin of the first run of mathematical text.

[Example: For example, consider the break in this instance of mathematical text:

The second line could theoretically be aligned to any of the four operators in the previous line.

Specifying an alnAt value of 3 for the second line resolves this ambiguity; the second line is aligned to the third operator in the previous line. end example]

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

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