Range.FormattedText Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns or sets a Range object that includes the formatted text in the specified range or selection.
public:
property Microsoft::Office::Interop::Word::Range ^ FormattedText { Microsoft::Office::Interop::Word::Range ^ get(); void set(Microsoft::Office::Interop::Word::Range ^ value); };
public Microsoft.Office.Interop.Word.Range FormattedText { get; set; }
member this.FormattedText : Microsoft.Office.Interop.Word.Range with get, set
Public Property FormattedText As Range
Property Value
Remarks
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(Object) method before using this property.