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

屬性值

String

字串,表示文字方塊中目前選取的文字。

屬性

備註

您可以將文字指派給這個屬性,以變更 目前在 中選取的 ToolStripTextBox 文字。 如果 目前在 中 ToolStripTextBox 未選取任何文字,則此屬性會傳回長度為零的字串。

適用於

另請參閱