RichTextBox.Text 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定目前的文字進入富文字框。
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。 若要閱讀或設定多行文字框的文字,請使用屬性。Lines 該 Text 屬性不會回傳任何關於 內容格式 RichTextBox的資訊。 要取得富文字格式化(RTF)代碼,請使用該 Rtf 屬性。 控制項中可輸入 RichTextBox 的文字量僅受系統記憶體限制。