ToolStripTextBox.SelectedText 屬性

定義

取得或設定一個值,表示目前控制項中選取的文字。

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則此屬性會回傳一個長度為零的字串。

適用於

另請參閱