IMathPhantom class

IMathPhantom 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.

The IMathPhantom type exposes the following members:

Properties

PropertyDescription
baseBase argument
showGets or sets a value indicating whether the base element is displayed.
zero_widthGets or sets a value indicating whether the width of the base element
should be treated as zero.
zero_ascGets or sets a value indicating whether the ascent (height above baseline)
of the base element should be treated as zero.
zero_descGets or sets a value indicating whether the descent (depth below baseline)
of the base element should be treated as zero.
transpGets or sets a value indicating whether the phantom is transparent
for class-based spacing rules.

Methods

MethodDescription
join(self, math_element)
join(self, math_text)
divide(self, denominator)
divide(self, denominator)
divide(self, denominator, fraction_type)
divide(self, denominator, fraction_type)
enclose(self)
enclose(self, beginning_character, ending_character)
function(self, function_argument)
function(self, function_argument)
as_argument_of_function(self, function_name)
as_argument_of_function(self, function_name)
as_argument_of_function(self, function_type)
as_argument_of_function(self, function_type, additional_argument)
as_argument_of_function(self, function_type, additional_argument)
set_subscript(self, subscript)
set_subscript(self, subscript)
set_superscript(self, superscript)
set_superscript(self, superscript)
set_sub_superscript_on_the_right(self, subscript, superscript)
set_sub_superscript_on_the_right(self, subscript, superscript)
set_sub_superscript_on_the_left(self, subscript, superscript)
set_sub_superscript_on_the_left(self, subscript, superscript)
radical(self, degree)
radical(self, degree)
set_upper_limit(self, limit)
set_upper_limit(self, limit)
set_lower_limit(self, limit)
set_lower_limit(self, limit)
nary(self, type, lower_limit, upper_limit)
nary(self, type, lower_limit, upper_limit)
integral(self, integral_type, lower_limit, upper_limit, limit_locations)
integral(self, integral_type, lower_limit, upper_limit)
integral(self, integral_type)
integral(self, integral_type, lower_limit, upper_limit, limit_locations)
integral(self, integral_type, lower_limit, upper_limit)
group(self)
group(self, character, position, vertical_justification)
to_border_box(self)
to_border_box(self, hide_top, hide_bottom, hide_left, hide_right, strikethrough_horizontal, strikethrough_vertical, strikethrough_bottom_left_to_top_right, strikethrough_top_left_to_bottom_right)
get_children(self)
to_math_array(self)
accent(self, accent_character)
overbar(self)
underbar(self)
to_box(self)

See Also