ToolStripComboBox.SelectedText プロパティ

定義

ToolStripComboBox のうち編集できる部分の中で選択されているテキストを取得または設定します。

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

コンボ ボックスで現在選択されているテキストを表す文字列。 DropDownStyleDropDownList に設定されている場合、戻り値は空の文字列 ("") です。

属性

注釈

このプロパティにテキストを割り当てて、コンボ ボックスで現在選択されているテキストを変更できます。 現在、コンボ ボックスでテキストが選択されていない場合、このプロパティは長さ 0 の文字列を返します。

適用対象