Class OMathScrSubSup (Word VBA)

The class OMathScrSubSup represents an equation with a base that contains a superscript or subscript.

AlignScripts

Returns or sets a Boolean that represents whether to horizontally align subscripts and superscripts in the sub-superscript object.

Dim oms As OMathScrSubSup: Set oms =  
oms.AlignScripts = True

E

Returns an OMath object that represents the base of the specified equation object.

Dim oms As OMathScrSubSup: Set oms =  
Dim omhE As OMath
Set omhE = oms.E

Parent

Returns an object that represents the parent object of the specified OMathScrSubSup object.

Dim oms As OMathScrSubSup: Set oms =  
Dim objParent As Object
Set objParent = oms.Parent

RemoveSub

Removes the subscript for an equation and returns an OMathFunction object that represents the updated equation without the subscript.

Dim oms As OMathScrSubSup: Set oms =  
Dim omfRemoveSub As OMathFunction
Set omfRemoveSub = oms.RemoveSub()

RemoveSup

Removes the superscript for an equation and returns an OMathFunction object that represents the updated equation without the superscript.

Dim oms As OMathScrSubSup: Set oms =  
Dim omfRemoveSup As OMathFunction
Set omfRemoveSup = oms.RemoveSup()

Sub

Returns an OMath object that represents the subscript for a subscript-superscript object.

Dim oms As OMathScrSubSup: Set oms =  
Dim omhSub As OMath
Set omhSub = oms.Sub

Sup

Returns an OMath object that represents the superscript for a subscript-superscript object.

Dim oms As OMathScrSubSup: Set oms =  
Dim omhSup As OMath
Set omhSup = oms.Sup

ToScrPre

Converts an equation with a base superscript or subscript to an equation with a superscript or subscript to the left of the base.

Dim oms As OMathScrSubSup: Set oms =  
Dim omfToScrPre As OMathFunction
Set omfToScrPre = oms.ToScrPre()