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.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應