편집

다음을 통해 공유


Selection.FormattedText Property

Definition

Returns or sets a Range object that includes the formatted text in the specified 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 or selection. 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.

Applies to