MathBox Class

Specifies the logical boxing (packaging) of mathematical element. For example, a boxed object can serve as an operator emulator with or without an alignment point, serve as a line break point, or be grouped such as not to allow line breaks within. For example, the "==" operator should be boxed to prevent line breaks.
Inheritance Hierarchy
SystemObject
  Aspose.Slides.MathTextMathElementBase
    Aspose.Slides.MathTextMathBox

Namespace:  Aspose.Slides.MathText
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 20.11.0.0 (20.11)
Syntax
public sealed class MathBox : MathElementBase, 
	IMathBox, IMathElement

The MathBox type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleMathBox
Initializes MathBox with the specified element as an argument
Properties
  NameDescription
Public propertyCode exampleAlignmentPoint
When true, this operator emulator serves as an alignment point; that is, designated alignment points in other equations can be aligned with it. Default: false
Public propertyCode exampleBase
Base argument
Public propertyCode exampleDifferential
Differential When true, the box acts as a differential (e.g., 𝑑𝑥 in an integrand), and receives the appropriate horizontal spacing for the mathematical differential. Default: false
Public propertyCode exampleExplicitBreak
Explicit break specifies whether there is a line break at the start of the Box object, such that the line wraps at the start of the box object. Specifies the number 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 possible values: 1..255 Default: 0 (no explicit break)
Public propertyCode exampleNoBreak
No break This property specifies the "unbreakable" property on the object box. When true, no line breaks can occur within the box. This can be important for operator emulators that consist of more than one binary operator. When this element is not specified, breaks can occur inside box. Default: true
Public propertyCode exampleOperatorEmulator
Operator Emulator. When true, the box and its contents behave as a single operator and inherit the properties of an operator. This means, for example, that the character can serve as a point for a line break and can be aligned to other operators. Operator Emulators are often used when one or more glyphs combine to form an operator, such as '=='. Default value: false
Methods
  NameDescription
Public methodCode exampleAccent
Sets an accent mark (a character on the top of this element)
(Inherited from MathElementBase.)
Public methodCode exampleAsArgumentOfFunction(String)
Takes specified function using this instance as the argument
(Inherited from MathElementBase.)
Public methodCode exampleAsArgumentOfFunction(IMathElement)
Takes specified function using this instance as the argument
(Inherited from MathElementBase.)
Public methodCode exampleAsArgumentOfFunction(MathFunctionsOfOneArgument)
Takes specified function using this instance as the argument
(Inherited from MathElementBase.)
Public methodCode exampleAsArgumentOfFunction(MathFunctionsOfTwoArguments, IMathElement)
Takes specified function using this instance as the argument and specified additional argument
(Inherited from MathElementBase.)
Public methodCode exampleAsArgumentOfFunction(MathFunctionsOfTwoArguments, String)
Takes specified function using this instance as the argument and specified additional argument
(Inherited from MathElementBase.)
Public methodCode exampleDivide(String)
Creates a fraction with this numerator and specified denominator
(Inherited from MathElementBase.)
Public methodCode exampleDivide(IMathElement)
Creates a fraction with this numerator and specified denominator
(Inherited from MathElementBase.)
Public methodCode exampleDivide(String, MathFractionTypes)
Creates a fraction of the specified type with this numerator and specified denominator
(Inherited from MathElementBase.)
Public methodCode exampleDivide(IMathElement, MathFractionTypes)
Creates a fraction of the specified type with this numerator and specified denominator
(Inherited from MathElementBase.)
Public methodCode exampleEnclose
Encloses a math element in parenthesis
(Inherited from MathElementBase.)
Public methodCode exampleEnclose(Char, Char)
Encloses a math element in specified characters such as parenthesis or another characters as framing
(Inherited from MathElementBase.)
Public methodEquals (Inherited from Object.)
Public methodCode exampleFunction(String)
Takes a function of an argument using this instance as the function name
(Inherited from MathElementBase.)
Public methodCode exampleFunction(IMathElement)
Takes a function of an argument using this instance as the function name
(Inherited from MathElementBase.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodCode exampleGroup
Places this element in a group using a bottom curly bracket
(Inherited from MathElementBase.)
Public methodCode exampleGroup(Char, MathTopBotPositions, MathTopBotPositions)
Places this element in a group using a grouping character such as bottom curly bracket or another
(Inherited from MathElementBase.)
Public methodCode exampleIntegral(MathIntegralTypes)
Takes the integral without limits
(Inherited from MathElementBase.)
Public methodCode exampleIntegral(MathIntegralTypes, IMathElement, IMathElement)
Takes the integral
(Inherited from MathElementBase.)
Public methodCode exampleIntegral(MathIntegralTypes, String, String)
Takes the integral
(Inherited from MathElementBase.)
Public methodCode exampleIntegral(MathIntegralTypes, IMathElement, IMathElement, MathLimitLocations)
Takes the integral
(Inherited from MathElementBase.)
Public methodCode exampleIntegral(MathIntegralTypes, String, String, MathLimitLocations)
Takes the integral
(Inherited from MathElementBase.)
Public methodCode exampleJoin(String)
Joins a mathematical text and forms a mathematical block
(Inherited from MathElementBase.)
Public methodCode exampleJoin(IMathElement)
Joins a mathematical element and forms a mathematical block
(Inherited from MathElementBase.)
Public methodCode exampleNary(MathNaryOperatorTypes, IMathElement, IMathElement)
Creates a N-ary operator
(Inherited from MathElementBase.)
Public methodCode exampleNary(MathNaryOperatorTypes, String, String)
Creates a N-ary operator
(Inherited from MathElementBase.)
Public methodCode exampleOverbar
Sets a bar on the top of this element
(Inherited from MathElementBase.)
Public methodCode exampleRadical(String)
Specifies the mathematical root of the given degree from the specified argument.
(Inherited from MathElementBase.)
Public methodCode exampleRadical(IMathElement)
Specifies the mathematical root of the given degree from the specified argument.
(Inherited from MathElementBase.)
Public methodCode exampleSetLowerLimit(String)
Takes lower limit
(Inherited from MathElementBase.)
Public methodCode exampleSetLowerLimit(IMathElement)
Takes lower limit
(Inherited from MathElementBase.)
Public methodCode exampleSetSubscript(String)
Creates subscript
(Inherited from MathElementBase.)
Public methodCode exampleSetSubscript(IMathElement)
Creates subscript
(Inherited from MathElementBase.)
Public methodCode exampleSetSubSuperscriptOnTheLeft(String, String)
Creates subscript and superscript on the left
(Inherited from MathElementBase.)
Public methodCode exampleSetSubSuperscriptOnTheLeft(IMathElement, IMathElement)
Creates subscript and superscript on the left
(Inherited from MathElementBase.)
Public methodCode exampleSetSubSuperscriptOnTheRight(String, String)
Creates subscript and superscript on the right
(Inherited from MathElementBase.)
Public methodCode exampleSetSubSuperscriptOnTheRight(IMathElement, IMathElement)
Creates subscript and superscript on the right
(Inherited from MathElementBase.)
Public methodCode exampleSetSuperscript(String)
Creates superscript
(Inherited from MathElementBase.)
Public methodCode exampleSetSuperscript(IMathElement)
Creates superscript
(Inherited from MathElementBase.)
Public methodCode exampleSetUpperLimit(String)
Takes upper limit
(Inherited from MathElementBase.)
Public methodCode exampleSetUpperLimit(IMathElement)
Takes upper limit
(Inherited from MathElementBase.)
Public methodCode exampleToBorderBox
Places this element in a border-box
(Inherited from MathElementBase.)
Public methodCode exampleToBorderBox(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
Places this element in a border-box
(Inherited from MathElementBase.)
Public methodCode exampleToBox
Places this element in a non-visual box (logical grouping) which is used to group components of an equation or other instance of mathematical text. A boxed object can (for example) serve as an operator emulator with or without an alignment point, serve as a line break point, or be grouped such as not to allow line breaks within.
(Inherited from MathElementBase.)
Public methodCode exampleToMathArray
Puts in a vertical array
(Inherited from MathElementBase.)
Public methodToString (Inherited from Object.)
Public methodCode exampleUnderbar
Sets a bar on the bottom of this element
(Inherited from MathElementBase.)
Examples
Example:
[C#]
MathBox box = new MathBox(new MathematicalText("=="));
See Also