Class OMathFrac (Word VBA)

The class OMathFrac represents a fraction, consisting of a numerator and denominator separated by a fraction bar. The fraction bar can be horizontal or diagonal, depending on the fraction properties.

Den

Returns an OMath object that represents the denominator for an equation that contains a fraction.

Dim omf As OMathFrac: Set omf =  
Dim omhDen As OMath
Set omhDen = omf.Den

Num

Returns an OMath object that represents the numerator for a fraction.

Dim omf As OMathFrac: Set omf =  
Dim omhNum As OMath
Set omhNum = omf.Num

Parent

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

Dim omf As OMathFrac: Set omf =  
Dim objParent As Object
Set objParent = omf.Parent

Type

Returns or sets a WdOMathFracType constant that represents the layout of a fraction, whether it is stacked, skewed, linear, or without a fraction bar.

Possible Values are wdOMathFracBar - Normal fraction bar, wdOMathFracLin - Show fraction inline, wdOMathFracNoBar - No fraction bar, wdOMathFracSkw - Skewed fraction bar.
Dim omf As OMathFrac: Set omf =  
omf.Type = wdOMathFracBar