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. To use a OMathFrac class variable it first needs to be instantiated, for example
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
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 return 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