107 references to DropDown
System.Windows.Forms (10)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (1)
227ComboBoxStyle.DropDown => owner.ChildEditAccessibleObject,
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (8)
347case ComboBoxStyle.DropDown: 1039[DefaultValue(ComboBoxStyle.DropDown)] 1044get => Properties.GetValueOrDefault(s_propStyle, ComboBoxStyle.DropDown); 1064Properties.AddOrRemoveValue(s_propStyle, value, defaultValue: ComboBoxStyle.DropDown); 1928if (DropDownStyle is ComboBoxStyle.DropDown 2596&& (DropDownStyle == ComboBoxStyle.DropDownList || DropDownStyle == ComboBoxStyle.DropDown)) 2882if (DropDownStyle == ComboBoxStyle.DropDown) 3440if (DropDownStyle == ComboBoxStyle.DropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
155[DefaultValue(ComboBoxStyle.DropDown)]
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
114if (style is ComboBoxStyle.DropDown or ComboBoxStyle.DropDownList)
System.Windows.Forms.Interop.Tests (1)
AccessibleObjectTests.cs (1)
446DropDownStyle = ComboBoxStyle.DropDown
System.Windows.Forms.Tests (95)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (8)
30[InlineData(ComboBoxStyle.DropDown)] 53[InlineData(ComboBoxStyle.DropDown)] 78[InlineData(ComboBoxStyle.DropDown)] 205[InlineData(ComboBoxStyle.DropDown)] 336yield return new object[] { ComboBoxStyle.DropDown, false, SR.AccessibleActionExpand }; 337yield return new object[] { ComboBoxStyle.DropDown, true, SR.AccessibleActionCollapse }; 394[InlineData(ComboBoxStyle.DropDown, false, true)] 395[InlineData(ComboBoxStyle.DropDown, true, false)]
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (10)
82[InlineData(ComboBoxStyle.DropDown)] 121[InlineData(ComboBoxStyle.DropDown)] 166[InlineData(ComboBoxStyle.DropDown)] 179[InlineData(ComboBoxStyle.DropDown)] 509[InlineData(ComboBoxStyle.DropDown)] 528[InlineData(ComboBoxStyle.DropDown)] 547[InlineData(ComboBoxStyle.DropDown)] 582[InlineData(ComboBoxStyle.DropDown)] 601[InlineData(ComboBoxStyle.DropDown)] 620[InlineData(ComboBoxStyle.DropDown)]
System\Windows\Forms\Application.ParkingWindowTests.cs (1)
42DropDownStyle = ComboBoxStyle.DropDown
System\Windows\Forms\ComboBox.ComboBoxChildDropDownButtonUiaProviderTests.cs (2)
87[InlineData(ComboBoxStyle.DropDown)] 105[InlineData(ComboBoxStyle.DropDown)]
System\Windows\Forms\ComboBox.ComboBoxChildEditUiaProviderTests.cs (3)
109[InlineData(ComboBoxStyle.DropDown)] 125[InlineData(ComboBoxStyle.DropDown)] 141[InlineData(ComboBoxStyle.DropDown)]
System\Windows\Forms\ComboBox.ComboBoxChildNativeWindowTests.cs (1)
11using ComboBox comboBox = new() { DropDownStyle = ComboBoxStyle.DropDown };
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (62)
14[InlineData(ComboBoxStyle.DropDown)] 39[InlineData(ComboBoxStyle.DropDown)] 55[InlineData(ComboBoxStyle.DropDown)] 71[InlineData(ComboBoxStyle.DropDown)] 85[InlineData(ComboBoxStyle.DropDown)] 101[InlineData(ComboBoxStyle.DropDown)] 117[InlineData(ComboBoxStyle.DropDown, RightToLeft.Yes, true)] 118[InlineData(ComboBoxStyle.DropDown, RightToLeft.No, false)] 133[InlineData(ComboBoxStyle.DropDown, RightToLeft.Yes)] 134[InlineData(ComboBoxStyle.DropDown, RightToLeft.No)] 151[InlineData(ComboBoxStyle.DropDown)] 171[InlineData(ComboBoxStyle.DropDown)] 184[InlineData(ComboBoxStyle.DropDown)] 201[InlineData(ComboBoxStyle.DropDown)] 219[InlineData(ComboBoxStyle.DropDown)] 239[InlineData(ComboBoxStyle.DropDown)] 255[InlineData(ComboBoxStyle.DropDown)] 269[InlineData(ComboBoxStyle.DropDown, 50, 20, 0)] 270[InlineData(ComboBoxStyle.DropDown, 50, 20, 50)] 271[InlineData(ComboBoxStyle.DropDown, 50, 20, 100)] 272[InlineData(ComboBoxStyle.DropDown, 50, 20, -5)] 297[InlineData(ComboBoxStyle.DropDown, 50, 20, 5)] 382[InlineData(ComboBoxStyle.DropDown)] 402[InlineData(ComboBoxStyle.DropDown)] 423yield return new object[] { ComboBoxStyle.DropDown, new Size(50, 20), "Some test text for testing", 0, new Point(1, 0) }; 424yield return new object[] { ComboBoxStyle.DropDown, new Size(50, 20), "Some test text for testing", 15, new Point(79, 0) }; 450yield return new object[] { ComboBoxStyle.DropDown, new Size(50, 20), "Some test text for testing", 0 }; 451yield return new object[] { ComboBoxStyle.DropDown, new Size(50, 20), "Some test text for testing", 15 }; 563int width = comboBoxStyle == ComboBoxStyle.DropDown ? 27 : 44; 565width = comboBoxStyle == ComboBoxStyle.DropDown ? 227 : 244; 586[InlineData(ComboBoxStyle.DropDown)] 689[InlineData(ComboBoxStyle.DropDown)] 703[InlineData(ComboBoxStyle.DropDown)] 721[InlineData(ComboBoxStyle.DropDown)] 739[InlineData(ComboBoxStyle.DropDown)] 767int expectedEnd = comboBoxStyle == ComboBoxStyle.DropDown ? 2 : 4; 769expectedEnd = comboBoxStyle == ComboBoxStyle.DropDown ? 4 : 8; 837yield return new object[] { ComboBoxStyle.DropDown, new Size(0, 0) }; 838yield return new object[] { ComboBoxStyle.DropDown, new Size(100, 20) }; 882[InlineData(ComboBoxStyle.DropDown)] 902yield return new object[] { ComboBoxStyle.DropDown, Point.Empty }; 903yield return new object[] { ComboBoxStyle.DropDown, new Point(10, 10) }; 943[InlineData(ComboBoxStyle.DropDown, 2, 5)] 944[InlineData(ComboBoxStyle.DropDown, 0, 10)] 972[InlineData(ComboBoxStyle.DropDown, 2, 5)] 973[InlineData(ComboBoxStyle.DropDown, 0, 10)] 1002[InlineData(ComboBoxStyle.DropDown, -5, 10)] 1003[InlineData(ComboBoxStyle.DropDown, 5, 100)] 1035[InlineData(ComboBoxStyle.DropDown, 0)] 1036[InlineData(ComboBoxStyle.DropDown, 2)] 1054[InlineData(ComboBoxStyle.DropDown, 0)] 1055[InlineData(ComboBoxStyle.DropDown, 2)] 1075[InlineData(ComboBoxStyle.DropDown)] 1092[InlineData(ComboBoxStyle.DropDown)] 1107[InlineData(ComboBoxStyle.DropDown)] 1121[InlineData(ComboBoxStyle.DropDown)] 1135[InlineData(ComboBoxStyle.DropDown, 50, 20, 0)] 1136[InlineData(ComboBoxStyle.DropDown, 50, 20, 50)] 1137[InlineData(ComboBoxStyle.DropDown, 50, 20, 200)] 1138[InlineData(ComboBoxStyle.DropDown, 50, 20, -5)] 1164[InlineData(ComboBoxStyle.DropDown, 0)] 1165[InlineData(ComboBoxStyle.DropDown, 2)]
System\Windows\Forms\ComboBoxTests.cs (6)
71Assert.Equal(ComboBoxStyle.DropDown, control.DropDownStyle); 477control.DropDownStyle = ComboBoxStyle.DropDown; 844yield return new object[] { source, mode, ComboBoxStyle.DropDown, mode }; 912[InlineData(ComboBoxStyle.DropDown, 0)] 2150[InlineData(ComboBoxStyle.DropDown)] 2733comboBox.DropDownStyle.Should().Be(ComboBoxStyle.DropDown);
System\Windows\Forms\ToolStripComboBoxTests.cs (2)
163[InlineData(ComboBoxStyle.DropDown)] 274_toolStripComboBox.DropDownStyle.Should().Be(ComboBoxStyle.DropDown);