MathBlock
Contents
[
Hide
]MathBlock class
Specifies an instance of mathematical text that contained within a MathParagraph and starts on its own line. All math zones, including equations, expressions, arrays of equations or expressions, and formulas are represented by math block.
public sealed class MathBlock : MathElementBase, IMathBlock
Constructors
Name | Description |
---|---|
MathBlock() | Initializes a new instance of the MathBlock class. |
MathBlock(IEnumerable<IMathElement>) | Creates a new mathematical block and puts specified elements in it |
MathBlock(IMathElement) | Creates a new mathematical block and puts specified element in it |
Properties
Name | Description |
---|---|
Count { get; } | Gets the number of child math elements actually contained in the collection. Read-only Int32. |
IsReadOnly { get; } | Returns false because child elements collection can be modified. |
Item { get; set; } | Gets or sets IMathElement at the specified index. |
Methods
Name | Description |
---|---|
Accent(char) | Sets an accent mark (a character on the top of this element) |
Add(IMathElement) | Adds a math element to the end of the collection. |
AsArgumentOfFunction(IMathElement) | Takes specified function using this instance as the argument |
AsArgumentOfFunction(MathFunctionsOfOneArgument) | Takes specified function using this instance as the argument |
AsArgumentOfFunction(string) | Takes specified function using this instance as the argument |
AsArgumentOfFunction(MathFunctionsOfTwoArguments, IMathElement) | Takes specified function using this instance as the argument and specified additional argument |
AsArgumentOfFunction(MathFunctionsOfTwoArguments, string) | Takes specified function using this instance as the argument and specified additional argument |
Clear() | Removes all elements from the collection. |
Contains(IMathElement) | Determines whether the collection contains a specific value. |
CopyTo(IMathElement[], int) | Copy to specified array. |
Delimit(char) | Delimits child elements with separator character (without the brackets) |
Divide(IMathElement) | Creates a fraction with this numerator and specified denominator |
Divide(string) | Creates a fraction with this numerator and specified denominator |
Divide(IMathElement, MathFractionTypes) | Creates a fraction of the specified type with this numerator and specified denominator |
Divide(string, MathFractionTypes) | Creates a fraction of the specified type with this numerator and specified denominator |
Enclose() | Encloses a math element in parenthesis |
override Enclose(char, char) | Encloses child elements of this block in specified characters such as parenthesis or another characters as framing |
Enclose(char, char, char) | Encloses child elements of this block in specified characters such as parenthesis or another as framing and delimit with a separator character |
Function(IMathElement) | Takes a function of an argument using this instance as the function name |
Function(string) | Takes a function of an argument using this instance as the function name |
GetChildren() | Get children elements |
Group() | Places this element in a group using a bottom curly bracket |
Group(char, MathTopBotPositions, MathTopBotPositions) | Places this element in a group using a grouping character such as bottom curly bracket or another |
IndexOf(IMathElement) | Determines the index of a specific math element in collection. |
Insert(int, IMathElement) | Inserts a MathElement into the collection at the specified index. |
Integral(MathIntegralTypes) | Takes the integral without limits |
Integral(MathIntegralTypes, IMathElement, IMathElement) | Takes the integral |
Integral(MathIntegralTypes, string, string) | Takes the integral |
Integral(MathIntegralTypes, IMathElement, IMathElement, MathLimitLocations) | Takes the integral |
Integral(MathIntegralTypes, string, string, MathLimitLocations) | Takes the integral |
override Join(IMathElement) | Joins a mathematical element with this mathematical block |
override Join(string) | Joins a mathematical text with this mathematical block |
JoinBlock(IMathBlock) | Joins another mathematical block with this one |
Nary(MathNaryOperatorTypes, IMathElement, IMathElement) | Creates a N-ary operator |
Nary(MathNaryOperatorTypes, string, string) | Creates a N-ary operator |
Overbar() | Sets a bar on the top of this element |
Radical(IMathElement) | Specifies the mathematical root of the given degree from the specified argument. |
Radical(string) | Specifies the mathematical root of the given degree from the specified argument. |
Remove(IMathElement) | Removes the first occurrence of a specific object from the collection. |
RemoveAt(int) | Removes the element at the specified index of the collection. |
SetLowerLimit(IMathElement) | Takes lower limit |
SetLowerLimit(string) | Takes lower limit |
SetSubscript(IMathElement) | Creates subscript |
SetSubscript(string) | Creates subscript |
SetSubSuperscriptOnTheLeft(IMathElement, IMathElement) | Creates subscript and superscript on the left |
SetSubSuperscriptOnTheLeft(string, string) | Creates subscript and superscript on the left |
SetSubSuperscriptOnTheRight(IMathElement, IMathElement) | Creates subscript and superscript on the right |
SetSubSuperscriptOnTheRight(string, string) | Creates subscript and superscript on the right |
SetSuperscript(IMathElement) | Creates superscript |
SetSuperscript(string) | Creates superscript |
SetUpperLimit(IMathElement) | Takes upper limit |
SetUpperLimit(string) | Takes upper limit |
ToBorderBox() | Places this element in a border-box |
ToBorderBox(bool, bool, bool, bool, bool, bool, bool, bool) | Places this element in a border-box |
ToBox() | 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. |
override ToMathArray() | Puts child elements in a vertical array |
Underbar() | Sets a bar on the bottom of this element |
WriteAsMathMl(Stream) | Saves content of this MathBlock as MathML |
Examples
Example:
[C#]
MathBlock mathBlock = new MathBlock();
See Also
- class MathElementBase
- interface IMathBlock
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides