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
join
divide
divide
divide
divide
enclose
enclose
function
function
as_argument_of_function
as_argument_of_function
as_argument_of_function
as_argument_of_function
as_argument_of_function
set_subscript
set_subscript
set_superscript
set_superscript
set_sub_superscript_on_the_right
set_sub_superscript_on_the_right
set_sub_superscript_on_the_left
set_sub_superscript_on_the_left
radical
radical
set_upper_limit
set_upper_limit
set_lower_limit
set_lower_limit
nary
nary
integral
integral
integral
integral
integral
group
group
to_border_box
to_border_box
get_children
to_math_array
accent
overbar
underbar
to_box

See Also