68 references to AutoCompleteMode
System.Windows.Forms (46)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (22)
94
private
AutoCompleteMode
_autoCompleteMode =
AutoCompleteMode
.None;
133
[DefaultValue(
AutoCompleteMode
.None)]
137
public
AutoCompleteMode
AutoCompleteMode
149
&& value !=
AutoCompleteMode
.None)
160
if (_autoCompleteMode !=
AutoCompleteMode
.None && value ==
AutoCompleteMode
.None)
190
&& AutoCompleteMode !=
AutoCompleteMode
.None
1056
&& AutoCompleteMode !=
AutoCompleteMode
.None)
1058
AutoCompleteMode =
AutoCompleteMode
.None;
1206
return ((_autoCompleteMode !=
AutoCompleteMode
.None) && (DropDownStyle != ComboBoxStyle.DropDownList));
1439
if (AutoCompleteMode !=
AutoCompleteMode
.None)
2069
&& AutoCompleteMode !=
AutoCompleteMode
.Append)
2679
if (AutoCompleteMode ==
AutoCompleteMode
.None)
2742
if (AutoCompleteMode !=
AutoCompleteMode
.None
2963
protected override bool ProcessKeyEventArgs(ref Message m) => (AutoCompleteMode !=
AutoCompleteMode
.None
3115
if (AutoCompleteMode ==
AutoCompleteMode
.None)
3131
AutoCompleteMode
backUpMode = AutoCompleteMode;
3132
_autoCompleteMode =
AutoCompleteMode
.None;
3213
if (AutoCompleteMode ==
AutoCompleteMode
.Suggest)
3218
if (AutoCompleteMode ==
AutoCompleteMode
.Append)
3223
if (AutoCompleteMode ==
AutoCompleteMode
.SuggestAppend)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (4)
113
EditingComboBox.AutoCompleteMode =
AutoCompleteMode
.Append;
117
EditingComboBox.AutoCompleteMode =
AutoCompleteMode
.None;
1305
comboBox.AutoCompleteMode =
AutoCompleteMode
.Append;
1309
comboBox.AutoCompleteMode =
AutoCompleteMode
.None;
System\Windows\Forms\Controls\TextBox\TextBox.cs (16)
63
private
AutoCompleteMode
_autoCompleteMode =
AutoCompleteMode
.None;
111
[DefaultValue(
AutoCompleteMode
.None)]
115
public
AutoCompleteMode
AutoCompleteMode
125
if (_autoCompleteMode !=
AutoCompleteMode
.None && value ==
AutoCompleteMode
.None)
250
if (value && AutoCompleteMode !=
AutoCompleteMode
.None)
569
if (AutoCompleteMode !=
AutoCompleteMode
.None)
625
if (AutoCompleteMode !=
AutoCompleteMode
.None)
735
if (AutoCompleteMode !=
AutoCompleteMode
.None)
741
AutoCompleteMode
backUpMode = AutoCompleteMode;
742
_autoCompleteMode =
AutoCompleteMode
.None;
777
if (AutoCompleteMode ==
AutoCompleteMode
.Suggest)
782
if (AutoCompleteMode ==
AutoCompleteMode
.Append)
787
if (AutoCompleteMode ==
AutoCompleteMode
.SuggestAppend)
808
if ((AutoCompleteMode !=
AutoCompleteMode
.None || force) && IsHandleCreated)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (2)
63
[DefaultValue(
AutoCompleteMode
.None)]
67
public
AutoCompleteMode
AutoCompleteMode
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (2)
193
[DefaultValue(
AutoCompleteMode
.None)]
197
public
AutoCompleteMode
AutoCompleteMode
System.Windows.Forms.Tests (19)
System\Windows\Forms\ComboBoxTests.cs (9)
31
Assert.Equal(
AutoCompleteMode
.None, control.AutoCompleteMode);
156
[InvalidEnumData<
AutoCompleteMode
>]
157
public void ComboBox_AutoCompleteMode_SetInvalidValue_ThrowsInvalidEnumArgumentException(
AutoCompleteMode
value)
433
control2.AutoCompleteMode.Should().Be(
AutoCompleteMode
.None);
841
foreach (
AutoCompleteMode
mode in Enum.GetValues(typeof(
AutoCompleteMode
)))
845
yield return new object[] { source, mode, ComboBoxStyle.DropDownList, source != AutoCompleteSource.ListItems ?
AutoCompleteMode
.None : mode };
852
public void ComboBox_DropDownStyle_SetWithSourceAndMode_GetReturnsExpected(AutoCompleteSource source,
AutoCompleteMode
mode, ComboBoxStyle value,
AutoCompleteMode
expectedMode)
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
30
Assert.Equal(
AutoCompleteMode
.None, control.AutoCompleteMode);
System\Windows\Forms\ToolStripComboBoxTests.cs (6)
113
[InlineData(
AutoCompleteMode
.Suggest)]
114
[InlineData(
AutoCompleteMode
.Append)]
115
[InlineData(
AutoCompleteMode
.SuggestAppend)]
116
[InlineData(
AutoCompleteMode
.None)]
117
public void ToolStripComboBox_AutoCompleteMode_SetAndGet(
AutoCompleteMode
mode)
119
_toolStripComboBox.AutoCompleteMode.Should().Be(
AutoCompleteMode
.None);
TextBoxTests.cs (3)
29
Assert.Equal(
AutoCompleteMode
.None, control.AutoCompleteMode);
261
[InvalidEnumData<
AutoCompleteMode
>]
262
public void TextBox_AutoCompleteMode_SetInvalidValue_ThrowsInvalidEnumArgumentException(
AutoCompleteMode
value)
System.Windows.Forms.UI.IntegrationTests (3)
ComboBoxTests.cs (3)
29
comboBox.AutoCompleteMode =
AutoCompleteMode
.Suggest;
30
comboBox.AutoCompleteMode =
AutoCompleteMode
.Suggest;
31
comboBox.AutoCompleteMode =
AutoCompleteMode
.Suggest;