RichTextBox.SelectedRtf 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在控制項中取得或設定目前選擇的富文字格式(RTF)格式文字。
public:
property System::String ^ SelectedRtf { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
public string SelectedRtf { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.SelectedRtf : string with get, set
Public Property SelectedRtf As String
屬性值
控制項中選取的 RTF 文字。
- 屬性
備註
此特性允許您取得控制中所選的文字,包括 RTF 格式代碼。 你可以利用此特性從控制器複製文字,並附有格式化,並貼上到其他支援 RTF 格式文字的應用程式中,例如 Microsoft Word 和 Windows WordPad。 要取得選取的文字,且不使用 RTF 格式代碼,請使用該 SelectedText 屬性。
如果目前沒有選取任何文字,則會將此屬性中指定的文字插入插入點。 若選取文字,任何指派給此屬性的文字都會取代所選文字。