[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.OMathPhantom

Class OMathPhantom

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents a phantom Office Math structure.

This structure has two primary uses: adding the spacing of the phantom base element without displaying that base; and suppressing part of the glyph for spacing considerations.

public class OMathPhantom : OMathStruct, IBrowsable<OMathStruct>
Inheritance
object
OMathPhantom
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Argument

Gets the argument OMathElement for the phantom.

public OMathElement Argument { get; }

Property Value

OMathElement

Show

Gets or sets whether to show the Argument element.

Default value is true.

public bool Show { get; set; }

Property Value

bool

Smash

Gets or sets whether the contents of the phantom are visible but that the height is not taken into account during layout.

Default value is false.

public bool Smash { get; set; }

Property Value

bool

StructType

Gets the OMathStructType of the structure.

public override OMathStructType StructType { get; }

Property Value

OMathStructType

Transparent

Gets or sets whether the phantom is transparent for spacing.

This means that if the contents of the phantom belong to a special spacing class (such as binary operators, relational operators, differentials, etc.), the contents of that phantom are taken into consideration when laying out text. If transparency is turned off, then the contents of the phantom are ignored during layout.

The default value is false.

In Microsoft Word, if transparency is off, special spacing is not added before and after the phantom, but the contents are not ignored during layout.

In Microsoft Word, transparency does not work as specified unless the phantom contains another math function and does not start or end with a math operator.

public bool Transparent { get; set; }

Property Value

bool

ZeroAscent

Gets or sets whether it should not take into account the ascent of the contents during layout.

Default value is false.

public bool ZeroAscent { get; set; }

Property Value

bool

ZeroDescent

Gets or sets whether it should not take into account the descent of the contents during layout.

Default value is false.

public bool ZeroDescent { get; set; }

Property Value

bool

ZeroWidth

Gets or sets whether it should not take into account the width of the contents during layout.

Default value is false.

public bool ZeroWidth { get; set; }

Property Value

bool