MathBlock class

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.

Inheritance:MathBlockMathElementBase

The MathBlock type exposes the following members:

Constructors

ConstructorDescription
__init__Initializes a new instance of the MathBlock class.
__init__Creates a new mathematical block and puts specified element in it
__init__

Properties

PropertyDescription
countGets the number of child math elements actually contained in the collection.
Read-only int.
is_read_onlyReturns false because child elements collection can be modified.

Gets or sets IMathElement at the specified index.

Indexer

NameDescription
[index]The zero-based index of the item

Methods

MethodDescription
joinJoins a mathematical element with this mathematical block
joinJoins a mathematical text with this mathematical block
divideCreates a fraction with this numerator and specified denominator
divideCreates a fraction with this numerator and specified denominator
divideCreates a fraction of the specified type with this numerator and specified denominator
divideCreates a fraction of the specified type with this numerator and specified denominator
encloseEncloses child elements of this block in specified characters such as parenthesis or another characters as framing
encloseEncloses child elements of this block in specified characters such as parenthesis or another as framing
and delimit with a separator character
encloseEncloses a math element in parenthesis
functionTakes a function of an argument using this instance as the function name
functionTakes a function of an argument using this instance as the function name
as_argument_of_functionTakes specified function using this instance as the argument
as_argument_of_functionTakes specified function using this instance as the argument
as_argument_of_functionTakes specified function using this instance as the argument
as_argument_of_functionTakes specified function using this instance as the argument and specified additional argument
as_argument_of_functionTakes specified function using this instance as the argument and specified additional argument
set_subscriptCreates subscript
set_subscriptCreates subscript
set_superscriptCreates superscript
set_superscriptCreates superscript
set_sub_superscript_on_the_rightCreates subscript and superscript on the right
set_sub_superscript_on_the_rightCreates subscript and superscript on the right
set_sub_superscript_on_the_leftCreates subscript and superscript on the left
set_sub_superscript_on_the_leftCreates subscript and superscript on the left
radicalSpecifies the mathematical root of the given degree from the specified argument.
radicalSpecifies the mathematical root of the given degree from the specified argument.
set_upper_limitTakes upper limit
set_upper_limitTakes upper limit
set_lower_limitTakes lower limit
set_lower_limitTakes lower limit
naryCreates a N-ary operator
naryCreates a N-ary operator
integralTakes the integral
integralTakes the integral
integralTakes the integral without limits
integralTakes the integral
integralTakes the integral
groupPlaces this element in a group using a bottom curly bracket
groupPlaces this element in a group using a grouping character such as bottom curly bracket or another
to_border_boxPlaces this element in a border-box
to_border_boxPlaces this element in a border-box
to_math_arrayPuts child elements in a vertical array
accentSets an accent mark (a character on the top of this element)
overbarSets a bar on the top of this element
underbarSets a bar on the bottom of this element
to_boxPlaces 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.
get_childrenGet children elements
addAdds a math element to the end of the collection.
clearRemoves all elements from the collection.
containsDetermines whether the collection contains a specific value.
copy_toCopy to specified array.
removeRemoves the first occurrence of a specific object from the collection.
index_ofDetermines the index of a specific math element in collection.
insertInserts a MathElement into the collection at the specified index.
remove_atRemoves the element at the specified index of the collection.
join_blockJoins another mathematical block with this one
delimitDelimits child elements with separator character (without the brackets)
write_as_math_mlSaves content of this MathBlock as MathML

See Also