RichTextBox.Rtf 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定控制項的 RichTextBox 文字,包括所有富文字格式(RTF)代碼。
public:
property System::String ^ Rtf { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
public string Rtf { get; set; }
[System.ComponentModel.Browsable(false)]
public string? Rtf { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Rtf : string with get, set
Public Property Rtf As String
屬性值
控制項的文字以 RTF 格式呈現。
- 屬性
備註
你可以利用此特性將 RTF 格式的文字放入控制項中以供顯示,或擷取控制項中定義的 RTF 格式文字。 此特性通常用於指派來自其他 RTF 來源(如 Microsoft Word 或 Windows WordPad)的 RTF 文字給控制項。
如果你在執行時更改 RightToLeft 屬性,只有原始文字且沒有格式化。
關於 RTF 代碼,請參見 富文本格式(RTF)規範,版本 1.6。