Class MathBox
Represents a box element — an invisible container that groups its base content and can act as an operator emulator or prevent line breaks.
Maps to the OMML m:box element.
Implements
Inherited Members
Namespace: DRIT.Presentation.Drawing.Mathematics
Assembly: DRIT.Presentation.dll
Syntax
public sealed class MathBox : MathElementBase, IMathElement
Constructors
MathBox(IMathElement)
Initializes a new instance of the math box class.
Declaration
public MathBox(IMathElement baseElement)
Parameters
| Type | Name | Description |
|---|---|---|
| IMathElement | baseElement | The base element used to construct this element. |
Properties
Base
Gets the base element contained in the box.
Declaration
public IMathElement Base { get; }
Property Value
| Type | Description |
|---|---|
| IMathElement |
Diff
Gets or sets whether the box is treated as a differential (affects spacing in integrals).
Declaration
public bool Diff { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
NoBreak
Gets or sets whether line breaks are disabled inside the box.
Declaration
public bool NoBreak { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
OperatorEmulator
Gets or sets whether the box acts as an operator emulator, meaning it inherits operator-like spacing and line-break behaviour.
Declaration
public bool OperatorEmulator { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |