MathPhantom class
Contents
[
Hide
]MathPhantom class
Represents a phantom math object (<m:phant>) that affects the layout of its child element without necessarily displaying it. A phantom can hide its base expression while preserving its width, height, or depth to align formulas or reserve space. Visibility and geometry behavior are controlled by properties such as Show, ZeroWid, ZeroAsc, ZeroDesc, and Transp.
Inheritance:MathPhantom → MathElementBase
The MathPhantom type exposes the following members:
Constructors
| Constructor | Description |
|---|---|
__init__ | Initializes a new instance of the MathPhantom classusing the specified base math element. |
Properties
| Property | Description |
|---|---|
base | Base argument |
show | Gets or sets a value indicating whether the base element is displayed. |
zero_width | Gets or sets a value indicating whether the width of the base element should be treated as zero. |
zero_asc | Gets or sets a value indicating whether the ascent (height above baseline) of the base element should be treated as zero. |
zero_desc | Gets or sets a value indicating whether the descent (depth below baseline) of the base element should be treated as zero. |
transp | Gets or sets a value indicating whether the phantom is transparent for class-based spacing rules. |
Methods
| Method | Description |
|---|---|
join | Joins a mathematical element and forms a mathematical block |
join | Joins a mathematical text and forms a mathematical block |
divide | Creates a fraction with this numerator and specified denominator |
divide | Creates a fraction with this numerator and specified denominator |
divide | Creates a fraction of the specified type with this numerator and specified denominator |
divide | Creates a fraction of the specified type with this numerator and specified denominator |
enclose | Encloses a math element in parenthesis |
enclose | Encloses a math element in specified characters such as parenthesis or another characters as framing |
function | Takes a function of an argument using this instance as the function name |
function | Takes a function of an argument using this instance as the function name |
as_argument_of_function | Takes specified function using this instance as the argument |
as_argument_of_function | Takes specified function using this instance as the argument |
as_argument_of_function | Takes specified function using this instance as the argument |
as_argument_of_function | Takes specified function using this instance as the argument and specified additional argument |
as_argument_of_function | Takes specified function using this instance as the argument and specified additional argument |
set_subscript | Creates subscript |
set_subscript | Creates subscript |
set_superscript | Creates superscript |
set_superscript | Creates superscript |
set_sub_superscript_on_the_right | Creates subscript and superscript on the right |
set_sub_superscript_on_the_right | Creates subscript and superscript on the right |
set_sub_superscript_on_the_left | Creates subscript and superscript on the left |
set_sub_superscript_on_the_left | Creates subscript and superscript on the left |
radical | Specifies the mathematical root of the given degree from the specified argument. |
radical | Specifies the mathematical root of the given degree from the specified argument. |
set_upper_limit | Takes upper limit |
set_upper_limit | Takes upper limit |
set_lower_limit | Takes lower limit |
set_lower_limit | Takes lower limit |
nary | Creates a N-ary operator |
nary | Creates a N-ary operator |
integral | Takes the integral |
integral | Takes the integral |
integral | Takes the integral without limits |
integral | Takes the integral |
integral | Takes the integral |
group | Places this element in a group using a bottom curly bracket |
group | Places this element in a group using a grouping character such as bottom curly bracket or another |
to_border_box | Places this element in a border-box |
to_border_box | Places this element in a border-box |
to_math_array | Puts in a vertical array |
accent | Sets an accent mark (a character on the top of this element) |
overbar | Sets a bar on the top of this element |
underbar | Sets a bar on the bottom of this element |
to_box | 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. |
get_children | Get children elements |
See Also
- class
MathElementBase - class
MathPhantom - module
aspose.slides.mathtext - library
Aspose.Slides