107 references to DropDown
System.Windows.Forms (10)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (1)
227
ComboBoxStyle.
DropDown
=> owner.ChildEditAccessibleObject,
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (8)
347
case ComboBoxStyle.
DropDown
:
1039
[DefaultValue(ComboBoxStyle.
DropDown
)]
1044
get => Properties.GetValueOrDefault(s_propStyle, ComboBoxStyle.
DropDown
);
1064
Properties.AddOrRemoveValue(s_propStyle, value, defaultValue: ComboBoxStyle.
DropDown
);
1928
if (DropDownStyle is ComboBoxStyle.
DropDown
2596
&& (DropDownStyle == ComboBoxStyle.DropDownList || DropDownStyle == ComboBoxStyle.
DropDown
))
2882
if (DropDownStyle == ComboBoxStyle.
DropDown
)
3440
if (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)
114
if (style is ComboBoxStyle.
DropDown
or ComboBoxStyle.DropDownList)
System.Windows.Forms.Interop.Tests (1)
AccessibleObjectTests.cs (1)
446
DropDownStyle = 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
)]
336
yield return new object[] { ComboBoxStyle.
DropDown
, false, SR.AccessibleActionExpand };
337
yield 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)
42
DropDownStyle = 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)
11
using 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
)]
423
yield return new object[] { ComboBoxStyle.
DropDown
, new Size(50, 20), "Some test text for testing", 0, new Point(1, 0) };
424
yield return new object[] { ComboBoxStyle.
DropDown
, new Size(50, 20), "Some test text for testing", 15, new Point(79, 0) };
450
yield return new object[] { ComboBoxStyle.
DropDown
, new Size(50, 20), "Some test text for testing", 0 };
451
yield return new object[] { ComboBoxStyle.
DropDown
, new Size(50, 20), "Some test text for testing", 15 };
563
int width = comboBoxStyle == ComboBoxStyle.
DropDown
? 27 : 44;
565
width = 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
)]
767
int expectedEnd = comboBoxStyle == ComboBoxStyle.
DropDown
? 2 : 4;
769
expectedEnd = comboBoxStyle == ComboBoxStyle.
DropDown
? 4 : 8;
837
yield return new object[] { ComboBoxStyle.
DropDown
, new Size(0, 0) };
838
yield return new object[] { ComboBoxStyle.
DropDown
, new Size(100, 20) };
882
[InlineData(ComboBoxStyle.
DropDown
)]
902
yield return new object[] { ComboBoxStyle.
DropDown
, Point.Empty };
903
yield 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)
71
Assert.Equal(ComboBoxStyle.
DropDown
, control.DropDownStyle);
477
control.DropDownStyle = ComboBoxStyle.
DropDown
;
844
yield return new object[] { source, mode, ComboBoxStyle.
DropDown
, mode };
912
[InlineData(ComboBoxStyle.
DropDown
, 0)]
2150
[InlineData(ComboBoxStyle.
DropDown
)]
2733
comboBox.DropDownStyle.Should().Be(ComboBoxStyle.
DropDown
);
System\Windows\Forms\ToolStripComboBoxTests.cs (2)
163
[InlineData(ComboBoxStyle.
DropDown
)]
274
_toolStripComboBox.DropDownStyle.Should().Be(ComboBoxStyle.
DropDown
);