IMathPhantom
Contents
[
Hide
]IMathPhantom interface
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.
public interface IMathPhantom : IMathElement
Properties
| Name | Description |
|---|---|
| Base { get; } | Base argument |
| Show { get; set; } | Gets or sets a value indicating whether the base element is displayed. |
| Transp { get; set; } | Gets or sets a value indicating whether the phantom is transparent for class-based spacing rules. |
| ZeroAsc { get; set; } | Gets or sets a value indicating whether the ascent (height above baseline) of the base element should be treated as zero. |
| ZeroDesc { get; set; } | Gets or sets a value indicating whether the descent (depth below baseline) of the base element should be treated as zero. |
| ZeroWidth { get; set; } | Gets or sets a value indicating whether the width of the base element should be treated as zero. |
Examples
Example:
[C#]
IMathPhantom phantom = new MathPhantom(new MathematicalText("1/2"));
phantom.Show = false; // Hide the content
phantom.ZeroWidth = false; // Keep the width
See Also
- interface IMathElement
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides