AutoCorrectEntries.AddRichText method

Creates a formatted AutoCorrect entry, preserving all text attributes of the specified range.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

AutoCorrectEntry AddRichText(
	string Name,
	Range Range
)

Parameters

Name
Type: System.String

The formatted text that Microsoft Word will insert automatically whenever Name is typed.

Range
Type: Microsoft.Office.Interop.Word.Range

The text to replace automatically with Range.

The RichText property for entries added by using this method returns True. If this method isn't used, inserted AutoCorrect entries conform to the current style.

Show: