94 references to ComboBoxStyle
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
177
this.comboBoxTemplates.DropDownStyle = System.Windows.Forms.
ComboBoxStyle
.DropDownList;
System.Windows.Forms (85)
_generated\1\Validation.cs (2)
151
public static void Validate(System.Windows.Forms.
ComboBoxStyle
enumToValidate, string parameterName = "value")
155
ReportEnumValidationError(parameterName, intValue, typeof(System.Windows.Forms.
ComboBoxStyle
));
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (7)
43
? owner.DropDownStyle !=
ComboBoxStyle
.Simple
101
if (!owner.IsHandleCreated || owner.DropDownStyle ==
ComboBoxStyle
.Simple)
227
ComboBoxStyle
.DropDown => owner.ChildEditAccessibleObject,
228
ComboBoxStyle
.DropDownList => owner.ChildTextAccessibleObject,
229
ComboBoxStyle
.Simple => null,
235
this.TryGetOwnerAs(out ComboBox? owner) && owner.DropDownStyle ==
ComboBoxStyle
.Simple
241
if (!this.IsOwnerHandleCreated(out ComboBox? owner) || owner.DropDownStyle ==
ComboBoxStyle
.Simple)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (1)
63
_owner.DropDownStyle ==
ComboBoxStyle
.DropDownList
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildEditUiaProvider.cs (1)
56
=> _owningComboBox.DropDownStyle !=
ComboBoxStyle
.Simple
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (2)
86
return _owningComboBox.DropDownStyle ==
ComboBoxStyle
.DropDownList
91
return _owningComboBox.DropDownStyle ==
ComboBoxStyle
.Simple
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (51)
152
if (DropDownStyle ==
ComboBoxStyle
.DropDownList
196
if (DropDownStyle ==
ComboBoxStyle
.DropDownList
324
childListControlhandle: DropDownStyle ==
ComboBoxStyle
.Simple
365
case
ComboBoxStyle
.Simple:
369
case
ComboBoxStyle
.DropDown:
375
case
ComboBoxStyle
.DropDownList:
822
&& DropDownStyle !=
ComboBoxStyle
.Simple)
867
if (DropDownStyle ==
ComboBoxStyle
.Simple)
1025
get => DropDownStyle ==
ComboBoxStyle
.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength);
1028
if (DropDownStyle !=
ComboBoxStyle
.DropDownList)
1116
[DefaultValue(
ComboBoxStyle
.DropDown)]
1119
public
ComboBoxStyle
DropDownStyle
1121
get => Properties.GetValueOrDefault(s_propStyle,
ComboBoxStyle
.DropDown);
1131
if (value ==
ComboBoxStyle
.DropDownList
1141
Properties.AddOrRemoveValue(s_propStyle, value, defaultValue:
ComboBoxStyle
.DropDown);
1183
if (DropDownStyle ==
ComboBoxStyle
.DropDownList && !IsHandleCreated && !string.IsNullOrEmpty(value) && FindStringExact(value) == -1)
1283
return ((_autoCompleteMode != AutoCompleteMode.None) && (DropDownStyle !=
ComboBoxStyle
.DropDownList));
1472
if (DropDownStyle ==
ComboBoxStyle
.Simple && m.HWnd == _childListBox!.Handle)
1491
if (DropDownStyle ==
ComboBoxStyle
.Simple && m.HWnd == _childListBox!.Handle)
1531
if (DropDownStyle ==
ComboBoxStyle
.Simple && m.HWnd == _childListBox!.Handle)
1556
if (DropDownStyle ==
ComboBoxStyle
.Simple && m.HWnd == _childListBox!.Handle)
1997
if (DropDownStyle is
ComboBoxStyle
.DropDown
1998
or
ComboBoxStyle
.DropDownList)
2045
return DropDownStyle ==
ComboBoxStyle
.Simple ? new(_childListBox) : new(this, _dropDownHandle);
2050
return DropDownStyle ==
ComboBoxStyle
.Simple ? _childListBox! : _childDropDown!;
2240
if (DropDownStyle !=
ComboBoxStyle
.DropDownList)
2302
if (DropDownStyle ==
ComboBoxStyle
.DropDownList && SelectedIndex == index)
2352
if (ok && DropDownStyle !=
ComboBoxStyle
.DropDownList)
2358
if (DropDownStyle ==
ComboBoxStyle
.Simple)
2389
if (DropDownStyle ==
ComboBoxStyle
.Simple)
2686
&& (DropDownStyle ==
ComboBoxStyle
.DropDownList || DropDownStyle ==
ComboBoxStyle
.DropDown))
2754
if (DropDownStyle ==
ComboBoxStyle
.Simple
2839
&& DropDownStyle ==
ComboBoxStyle
.DropDownList)
2898
if (DropDownStyle ==
ComboBoxStyle
.Simple && recreate)
2920
if (DropDownStyle ==
ComboBoxStyle
.Simple
2980
if (DropDownStyle ==
ComboBoxStyle
.DropDown)
2987
if (DropDownStyle ==
ComboBoxStyle
.DropDownList)
3037
if (DropDownStyle !=
ComboBoxStyle
.DropDownList
3063
&& DropDownStyle ==
ComboBoxStyle
.DropDownList
3260
if (DropDownStyle ==
ComboBoxStyle
.DropDownList)
3263
Debug.Assert(DropDownStyle ==
ComboBoxStyle
.DropDownList);
3351
if ((specified & BoundsSpecified.Height) != BoundsSpecified.None && DropDownStyle ==
ComboBoxStyle
.Simple)
3531
if (DropDownStyle ==
ComboBoxStyle
.DropDown)
3542
if ((DropDownStyle ==
ComboBoxStyle
.Simple) && ParentInternal is not null)
3735
&& DropDownStyle !=
ComboBoxStyle
.Simple
3756
&& DropDownStyle !=
ComboBoxStyle
.Simple
3799
&& DropDownStyle ==
ComboBoxStyle
.DropDownList
3830
if (DropDownStyle ==
ComboBoxStyle
.Simple
4016
&& DropDownStyle ==
ComboBoxStyle
.DropDownList
4117
if (DropDownStyle ==
ComboBoxStyle
.Simple
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
68
if (comboBox.DropDownStyle ==
ComboBoxStyle
.Simple)
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatStyle.Docs.cs (1)
22
/// Modern non-<see cref="
ComboBoxStyle
.Simple"/> controls share field metrics with an AutoSize,
System\Windows\Forms\Controls\ComboBox\ComboBox.Modern.cs (11)
66
Rectangle editBounds = DropDownStyle ==
ComboBoxStyle
.DropDownList
71
Rectangle simpleListBounds = DropDownStyle ==
ComboBoxStyle
.Simple
141
if (DropDownStyle !=
ComboBoxStyle
.Simple
186
int extraButtonWidth = DropDownStyle ==
ComboBoxStyle
.Simple
250
if (DropDownStyle ==
ComboBoxStyle
.Simple)
392
if (DropDownStyle ==
ComboBoxStyle
.Simple)
576
if (!UsesModernComboAdapter || DropDownStyle ==
ComboBoxStyle
.Simple)
584
return DropDownStyle ==
ComboBoxStyle
.DropDownList
591
if (DropDownStyle ==
ComboBoxStyle
.Simple
612
|| DropDownStyle ==
ComboBoxStyle
.Simple
643
&& DropDownStyle !=
ComboBoxStyle
.Simple)
System\Windows\Forms\Controls\ComboBox\ComboBox.ModernComboAdapter.cs (4)
20
private readonly
ComboBoxStyle
_dropDownStyle;
31
if (_dropDownStyle ==
ComboBoxStyle
.Simple)
81
if (_dropDownStyle !=
ComboBoxStyle
.DropDownList
270
if (_dropDownStyle !=
ComboBoxStyle
.DropDownList
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1271
comboBox.DropDownStyle =
ComboBoxStyle
.DropDownList;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.DataGridViewComboBoxEditingControlAccessibleObject.cs (1)
57
=> owner.DropDownStyle !=
ComboBoxStyle
.Simple,
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (2)
155
[DefaultValue(
ComboBoxStyle
.DropDown)]
158
public
ComboBoxStyle
DropDownStyle
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\ComboBoxDesigner.cs (4)
107
ComboBoxStyle
style =
ComboBoxStyle
.Simple;
112
if (style is
ComboBoxStyle
.DropDown or
ComboBoxStyle
.DropDownList)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
433
_columnTypesCombo.DropDownStyle =
ComboBoxStyle
.DropDownList;
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
194
_keyComboBox.DropDownStyle =
ComboBoxStyle
.DropDownList;
System\Windows\Forms\Design\StyleEditorForm.cs (1)
294
_columnsOrRowsComboBox.DropDownStyle =
ComboBoxStyle
.DropDownList;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
249
_newItemTypes.DropDownStyle =
ComboBoxStyle
.DropDownList;