74 references to ComboBoxStyle
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
177
this.comboBoxTemplates.DropDownStyle = System.Windows.Forms.
ComboBoxStyle
.DropDownList;
System.Windows.Forms (65)
_generated\1\Validation.cs (2)
143
public static void Validate(System.Windows.Forms.
ComboBoxStyle
enumToValidate, string parameterName = "value")
147
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 (47)
147
if (DropDownStyle ==
ComboBoxStyle
.DropDownList
189
if (DropDownStyle ==
ComboBoxStyle
.DropDownList
314
new ComboBoxChildListUiaProvider(this, DropDownStyle ==
ComboBoxStyle
.Simple ? _childListBox!.HWND : _dropDownHandle);
349
case
ComboBoxStyle
.Simple:
352
case
ComboBoxStyle
.DropDown:
357
case
ComboBoxStyle
.DropDownList:
794
if (DropDownStyle ==
ComboBoxStyle
.Simple)
953
get => DropDownStyle ==
ComboBoxStyle
.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength);
956
if (DropDownStyle !=
ComboBoxStyle
.DropDownList)
1044
[DefaultValue(
ComboBoxStyle
.DropDown)]
1047
public
ComboBoxStyle
DropDownStyle
1049
get => Properties.GetValueOrDefault(s_propStyle,
ComboBoxStyle
.DropDown);
1059
if (value ==
ComboBoxStyle
.DropDownList
1069
Properties.AddOrRemoveValue(s_propStyle, value, defaultValue:
ComboBoxStyle
.DropDown);
1111
if (DropDownStyle ==
ComboBoxStyle
.DropDownList && !IsHandleCreated && !string.IsNullOrEmpty(value) && FindStringExact(value) == -1)
1211
return ((_autoCompleteMode != AutoCompleteMode.None) && (DropDownStyle !=
ComboBoxStyle
.DropDownList));
1400
if (DropDownStyle ==
ComboBoxStyle
.Simple && m.HWnd == _childListBox!.Handle)
1419
if (DropDownStyle ==
ComboBoxStyle
.Simple && m.HWnd == _childListBox!.Handle)
1459
if (DropDownStyle ==
ComboBoxStyle
.Simple && m.HWnd == _childListBox!.Handle)
1484
if (DropDownStyle ==
ComboBoxStyle
.Simple && m.HWnd == _childListBox!.Handle)
1926
if (DropDownStyle is
ComboBoxStyle
.DropDown
1927
or
ComboBoxStyle
.DropDownList)
1974
return DropDownStyle ==
ComboBoxStyle
.Simple ? new(_childListBox) : new(this, _dropDownHandle);
1979
return DropDownStyle ==
ComboBoxStyle
.Simple ? _childListBox! : _childDropDown!;
2169
if (DropDownStyle !=
ComboBoxStyle
.DropDownList)
2231
if (DropDownStyle ==
ComboBoxStyle
.DropDownList && SelectedIndex == index)
2281
if (ok && DropDownStyle !=
ComboBoxStyle
.DropDownList)
2287
if (DropDownStyle ==
ComboBoxStyle
.Simple)
2318
if (DropDownStyle ==
ComboBoxStyle
.Simple)
2589
&& (DropDownStyle ==
ComboBoxStyle
.DropDownList || DropDownStyle ==
ComboBoxStyle
.DropDown))
2657
if (DropDownStyle ==
ComboBoxStyle
.Simple)
2737
&& DropDownStyle ==
ComboBoxStyle
.DropDownList)
2796
if (DropDownStyle ==
ComboBoxStyle
.Simple && recreate)
2816
if (DropDownStyle ==
ComboBoxStyle
.Simple && IsHandleCreated)
2875
if (DropDownStyle ==
ComboBoxStyle
.DropDown)
2882
if (DropDownStyle ==
ComboBoxStyle
.DropDownList)
2932
if (DropDownStyle !=
ComboBoxStyle
.DropDownList
2958
&& DropDownStyle ==
ComboBoxStyle
.DropDownList
3155
if (DropDownStyle ==
ComboBoxStyle
.DropDownList)
3158
Debug.Assert(DropDownStyle ==
ComboBoxStyle
.DropDownList);
3246
if ((specified & BoundsSpecified.Height) != BoundsSpecified.None && DropDownStyle ==
ComboBoxStyle
.Simple)
3424
if (DropDownStyle ==
ComboBoxStyle
.DropDown)
3435
if ((DropDownStyle ==
ComboBoxStyle
.Simple) && ParentInternal is not null)
3650
&& DropDownStyle ==
ComboBoxStyle
.DropDownList
3681
if (DropDownStyle ==
ComboBoxStyle
.Simple
3797
if (Application.IsDarkModeEnabled && !Enabled && DropDownStyle ==
ComboBoxStyle
.DropDownList)
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
68
if (comboBox.DropDownStyle ==
ComboBoxStyle
.Simple)
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;