Class OMathScrSubSup (Word VBA)

The class OMathScrSubSup represents an equation with a base that contains a superscript or subscript. To use a OMathScrSubSup class variable it first needs to be instantiated, for example

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

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()