ToolStripTextBox.SelectedText 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,表示目前控制項中選取的文字。
public:
property System::String ^ SelectedText { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
public string SelectedText { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.SelectedText : string with get, set
Public Property SelectedText As String
屬性值
一個代表文字框中目前選取文字的字串。
- 屬性
備註
你可以將文字指派到這個屬性,以更改目前在 ToolStripTextBox. 如果目前沒有選取任何文字, ToolStripTextBox則此屬性會回傳一個長度為零的字串。