Range.FormattedText property

Returns or sets a Range object that includes the formatted text in the specified range or selection.

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

Range FormattedText { get; set; }

This property returns a Range object with the character formatting and text from the specified range. Paragraph formatting is included in the Range object if there's a paragraph mark in the range or selection.

When you set this property, the text in the range is replaced with formatted text. If you don't want to replace the existing text, use the Collapse method before using this property.

Show: