AutoFormatAsYouTypeReplacePlainTextEmphasis Property

Microsoft Word Visual Basic

AutoFormatAsYouTypeReplacePlainTextEmphasis Property

       

True if manual emphasis characters are automatically replaced with character formatting as you type. For example, "*bold*" is changed to "bold" and "_underline_" is changed to "underline." Read/write Boolean.

Example

This example turns on the replacement of manual emphasis characters with character formatting.

Options.AutoFormatAsYouTypeReplacePlainTextEmphasis = True

This example returns the status of the *Bold* and _underline_ with real formatting option on the AutoFormat As You Type tab in the AutoCorrect dialog box (Tools menu).

Dim blnAutoFormat as Boolean

blnAutoFormat = _
    Options.AutoFormatAsYouTypeReplacePlainTextEmphasis