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

콤보 상자에서 현재 선택되어 있는 텍스트를 나타내는 문자열입니다. DropDownStyle을(를) DropDownList(으)로 설정하면 빈 문자열("")이 반환됩니다.

특성

설명

이 속성에 텍스트를 할당하여 현재 콤보 상자에서 선택한 텍스트를 변경할 수 있습니다. 현재 콤보 상자에서 텍스트가 선택되어 있지 않으면 이 속성은 길이가 0인 문자열을 반환합니다.

적용 대상