ToolStripComboBox.SelectedText プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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
プロパティ値
コンボ ボックスで現在選択されているテキストを表す文字列。
DropDownStyleが DropDownList に設定されている場合、戻り値は空の文字列 ("") になります。
- 属性
注釈
このプロパティにテキストを割り当てて、コンボ ボックスで現在選択されているテキストを変更できます。 コンボ ボックスでテキストが現在選択されていない場合、このプロパティは長さ 0 の文字列を返します。