共用方式為


RichTextBox.Text 屬性

定義

取得或設定目前的文字進入富文字框。

public:
 virtual property System::String ^ Text { System::String ^ get(); void set(System::String ^ value); };
public override string Text { get; set; }
member this.Text : string with get, set
Public Overrides Property Text As String

屬性值

控制面板顯示的文字。

備註

若要在 中 RichTextBox顯示多行文字,將屬性 Multiline 設為 true。 若要閱讀或設定多行文字框的文字,請使用屬性。LinesText 屬性不會回傳任何關於 內容格式 RichTextBox的資訊。 要取得富文字格式化(RTF)代碼,請使用該 Rtf 屬性。 控制項中可輸入 RichTextBox 的文字量僅受系統記憶體限制。

適用於

另請參閱