ToolStripComboBox.DropDownStyle 속성

정의

ToolStripComboBox의 스타일을 지정하는 값을 가져오거나 설정합니다.

public:
 property System::Windows::Forms::ComboBoxStyle DropDownStyle { System::Windows::Forms::ComboBoxStyle get(); void set(System::Windows::Forms::ComboBoxStyle value); };
public System.Windows.Forms.ComboBoxStyle DropDownStyle { get; set; }
member this.DropDownStyle : System.Windows.Forms.ComboBoxStyle with get, set
Public Property DropDownStyle As ComboBoxStyle

속성 값

ComboBoxStyle

ComboBoxStyle 값 중 하나입니다. 기본값은 DropDown입니다.

예제

다음 코드 예제에서는 속성을 비롯한 DropDownStyle 다양한 ToolStripComboBox 속성을 설정하기 위한 구문을 보여 줍니다.

// The following code example demonstrates the syntax for setting
// various ToolStripComboBox properties.
// 
toolStripComboBox1.AutoCompleteCustomSource.AddRange(new string[] {
"aaa",
"bbb",
"ccc"});
toolStripComboBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
toolStripComboBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
toolStripComboBox1.DropDownHeight = 110;
toolStripComboBox1.DropDownWidth = 122;
toolStripComboBox1.FlatStyle = System.Windows.Forms.FlatStyle.Standard;
toolStripComboBox1.IntegralHeight = false;
toolStripComboBox1.Items.AddRange(new object[] {
"xxx",
"yyy",
"zzz"});
toolStripComboBox1.MaxDropDownItems = 9;
toolStripComboBox1.MergeAction = System.Windows.Forms.MergeAction.Insert;
toolStripComboBox1.Name = "toolStripComboBox1";
toolStripComboBox1.Size = new System.Drawing.Size(121, 25);
toolStripComboBox1.Sorted = true;
' The following code example demonstrates the syntax for setting
' various ToolStripComboBox properties.
' 
toolStripComboBox1.AutoCompleteCustomSource.AddRange(New String() {"aaa", "bbb", "ccc"})
toolStripComboBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend
toolStripComboBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource
toolStripComboBox1.DropDownHeight = 110
toolStripComboBox1.DropDownWidth = 122
toolStripComboBox1.FlatStyle = System.Windows.Forms.FlatStyle.Standard
toolStripComboBox1.IntegralHeight = False
toolStripComboBox1.Items.AddRange(New Object() {"xxx", "yyy", "zzz"})
toolStripComboBox1.MaxDropDownItems = 9
toolStripComboBox1.MergeAction = System.Windows.Forms.MergeAction.Insert
toolStripComboBox1.Name = "toolStripComboBox1"
toolStripComboBox1.Size = New System.Drawing.Size(121, 25)
toolStripComboBox1.Sorted = True

설명

DropDownStyle 속성이 사용자에 게 표시 되는 인터페이스를 제어 합니다. 목록이 항상 표시되는 간단한 드롭다운 목록 상자, 텍스트 부분을 편집할 수 없는 드롭다운 목록 상자 또는 텍스트 부분을 편집할 수 있는 기본 드롭다운 목록 상자를 선택해야 하는 간단한 드롭다운 목록 상자를 입력할 수 있습니다. 이때 사용자는 화살표 키를 눌러 목록을 확인해야 합니다. 편집할 수 없으면 목록이 항상 표시 하려면 사용을 ListBox 제어 합니다.

적용 대상