Share via


Break Class

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

Inheritance Hierarchy

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

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

Syntax

'宣言
Public Class Break _
    Inherits OpenXmlLeafElement
'使用
Dim instance As Break
public class Break : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 初版]

22.1.2.15 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>
</m:r>
<m:box>
<m:boxPr>
<m:opEmum:val="1"/>
<m:brk/>
</m:boxPr>
  <m:e>
<m:r>
<m:t>==</m:t>
</m:r>
</m:e>
</m:box>
<m:r>
<m:t>b</m:t>
</m:r>

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

end example]

Parent Elements

boxPr (§22.1.2.14); rPr (§22.1.2.91)

Attributes

Description

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

[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. 上記の引用はマイクロソフト (またはその代理) によって英語から日本語に翻訳されたものであり、ISO はこうした翻訳に対する責任を一切負いません。

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

Break Members

DocumentFormat.OpenXml.Math Namespace