MathPhantom constructor

init

Initializes a new instance of the MathPhantom class using the specified base math element.

def __init__(self, element):
    ...
ParameterTypeDescription
elementIMathElementThe base IMathElement whose visibility and layout will be controlled

by the phantom. This element defines the content that may be hidden or shown,

while still affecting the geometric alignment of the surrounding math.

Remarks

The phantom element is used to reserve or suppress the visual space of its base expression without necessarily displaying it. It corresponds to the OMML element <m:phant>.

See Also