RichTextBox.Text 屬性

定義

取得或設定 Rich Text Box 中目前的文字。

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

屬性值

String

顯示於控制項中的文字。

備註

若要在 中 RichTextBox 顯示多行文字,請將 Multiline 屬性設定為 true 。 若要讀取或設定多行文字方塊的文字,請使用 Lines 屬性。 屬性 Text 不會傳回套用至 內容 RichTextBox 之格式設定的任何資訊。 若要取得 RTF) 代碼 (RTF 格式設定,請使用 Rtf 屬性。 控制項中 RichTextBox 可以輸入的文字數量只受限於可用的系統記憶體。

適用於

另請參閱