Share via


OMath.Type Property

Word Developer Reference

Returns or sets a WdOMathType constant that represents whether an equation is displayed inline with the text around it or displayed on its own line. Read/write.

Syntax

expression.Type

expression   An expression that returns an OMath object.

Example

The following example creates a new equation and sets it to display inline with the text.

Visual Basic for Applications
  Dim objRange As Range
Dim objEq As OMath

Set objRange = Selection.Range objRange.Text = "Celsius = (5/9)(Fahrenheit – 32)" Set objRange = Selection.OMaths.Add(objRange) Set objEq = objRange.OMaths(1) objEq.Type = wdOMathInline

See Also