89 references to AutoCompleteSource
System.Windows.Forms (46)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (13)
95private AutoCompleteSource _autoCompleteSource = AutoCompleteSource.None; 148&& AutoCompleteSource != AutoCompleteSource.ListItems 175[DefaultValue(AutoCompleteSource.None)] 179public AutoCompleteSource AutoCompleteSource 191&& value != AutoCompleteSource.ListItems) 1054&& AutoCompleteSource != AutoCompleteSource.ListItems 1861if (_updateCount == 0 && AutoCompleteSource == AutoCompleteSource.ListItems) 2692if (AutoCompleteSource == AutoCompleteSource.CustomSource) 2741&& AutoCompleteSource == AutoCompleteSource.ListItems 2962&& AutoCompleteSource == AutoCompleteSource.ListItems 3135if (AutoCompleteSource == AutoCompleteSource.CustomSource) 3167if (AutoCompleteSource == AutoCompleteSource.ListItems)
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (6)
108if (_owner.UpdateNeeded() && _owner.AutoCompleteSource == AutoCompleteSource.ListItems) 203if (_owner.AutoCompleteSource == AutoCompleteSource.ListItems) 250if (_owner.AutoCompleteSource == AutoCompleteSource.ListItems) 339if (_owner.AutoCompleteSource == AutoCompleteSource.ListItems) 385if (_owner.AutoCompleteSource == AutoCompleteSource.ListItems) 431if (_owner.AutoCompleteSource == AutoCompleteSource.ListItems)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (4)
112EditingComboBox.AutoCompleteSource = AutoCompleteSource.ListItems; 118EditingComboBox.AutoCompleteSource = AutoCompleteSource.None; 1308comboBox.AutoCompleteSource = AutoCompleteSource.ListItems; 1314comboBox.AutoCompleteSource = AutoCompleteSource.None;
System\Windows\Forms\Controls\TextBox\TextBox.cs (18)
69private AutoCompleteSource _autoCompleteSource = AutoCompleteSource.None; 139[DefaultValue(AutoCompleteSource.None)] 144public AutoCompleteSource AutoCompleteSource 154case AutoCompleteSource.None: 155case AutoCompleteSource.AllSystemSources: 156case AutoCompleteSource.AllUrl: 157case AutoCompleteSource.CustomSource: 158case AutoCompleteSource.FileSystem: 159case AutoCompleteSource.FileSystemDirectories: 160case AutoCompleteSource.HistoryList: 161case AutoCompleteSource.RecentlyUsedList: 165case AutoCompleteSource.ListItems: 168throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(AutoCompleteSource)); 549if (AutoCompleteSource == AutoCompleteSource.CustomSource) 730if (Multiline || _passwordChar != 0 || _useSystemPasswordChar || AutoCompleteSource == AutoCompleteSource.None) 747if (AutoCompleteSource == AutoCompleteSource.CustomSource) 810PInvoke.SHAutoComplete(this, (SHELL_AUTOCOMPLETE_FLAGS)AutoCompleteSource.AllSystemSources | SHELL_AUTOCOMPLETE_FLAGS.SHACF_AUTOSUGGEST_FORCE_OFF | SHELL_AUTOCOMPLETE_FLAGS.SHACF_AUTOAPPEND_FORCE_OFF);
System\Windows\Forms\Controls\TextBox\TextBoxAutoCompleteSourceConverter.cs (1)
26if (!string.Equals(currentItem.ToString(), nameof(AutoCompleteSource.ListItems)))
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (2)
73[DefaultValue(AutoCompleteSource.None)] 77public AutoCompleteSource AutoCompleteSource
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (2)
203[DefaultValue(AutoCompleteSource.None)] 207public AutoCompleteSource AutoCompleteSource
System.Windows.Forms.Tests (41)
System\Windows\Forms\ComboBoxTests.cs (10)
32Assert.Equal(AutoCompleteSource.None, control.AutoCompleteSource); 431using ComboBox control2 = new() { AutoCompleteSource = AutoCompleteSource.ListItems }; 840foreach (AutoCompleteSource source in Enum.GetValues(typeof(AutoCompleteSource))) 846yield return new object[] { source, mode, ComboBoxStyle.DropDownList, source != AutoCompleteSource.ListItems ? AutoCompleteMode.None : mode }; 853public void ComboBox_DropDownStyle_SetWithSourceAndMode_GetReturnsExpected(AutoCompleteSource source, AutoCompleteMode mode, ComboBoxStyle value, AutoCompleteMode expectedMode) 875[EnumData<AutoCompleteSource>] 876public void ComboBox_AutoCompleteSource_Set_GetReturnsExpected(AutoCompleteSource value) 884[InvalidEnumData<AutoCompleteSource>] 885public void ComboBox_AutoCompleteSource_InvalidAutoCompleteSource_ThrowsInvalidEnumArgumentException(AutoCompleteSource source)
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
31Assert.Equal(AutoCompleteSource.None, control.AutoCompleteSource);
System\Windows\Forms\TextBoxAutoCompleteSourceConverterTests.cs (9)
15TextBoxAutoCompleteSourceConverter converter = new(typeof(AutoCompleteSource)); 22value.Should().Contain(AutoCompleteSource.AllUrl); 23value.Should().Contain(AutoCompleteSource.AllSystemSources); 24value.Should().Contain(AutoCompleteSource.CustomSource); 25value.Should().Contain(AutoCompleteSource.HistoryList); 26value.Should().Contain(AutoCompleteSource.RecentlyUsedList); 27value.Should().Contain(AutoCompleteSource.FileSystem); 28value.Should().Contain(AutoCompleteSource.FileSystemDirectories); 29value.Should().Contain(AutoCompleteSource.None);
System\Windows\Forms\ToolStripComboBoxTests.cs (10)
126[InlineData(AutoCompleteSource.None)] 127[InlineData(AutoCompleteSource.AllSystemSources)] 128[InlineData(AutoCompleteSource.AllUrl)] 129[InlineData(AutoCompleteSource.CustomSource)] 130[InlineData(AutoCompleteSource.FileSystem)] 131[InlineData(AutoCompleteSource.FileSystemDirectories)] 132[InlineData(AutoCompleteSource.HistoryList)] 133[InlineData(AutoCompleteSource.RecentlyUsedList)] 134[InlineData(AutoCompleteSource.ListItems)] 135public void ToolStripComboBox_AutoCompleteSource_SetAndGet(AutoCompleteSource source)
System\Windows\Forms\ToolStripTextBoxTests.cs (3)
214[InlineData(AutoCompleteSource.AllSystemSources)] 215[InlineData(AutoCompleteSource.None)] 216public void ToolStripTextBox_AutoCompleteSource_GetSet_ReturnsExpected(AutoCompleteSource autoCompleteSource)
TextBoxTests.cs (8)
30Assert.Equal(AutoCompleteSource.None, control.AutoCompleteSource); 271[EnumData<AutoCompleteSource>] 272public void TextBox_AutoCompleteSource_Set_GetReturnsExpected(AutoCompleteSource value) 276AutoCompleteSource = value == AutoCompleteSource.ListItems ? AutoCompleteSource.None : value 279if (value != AutoCompleteSource.ListItems) 286[InvalidEnumData<AutoCompleteSource>] 287public void TextBox_AutoCompleteSource_InvalidAutoCompleteSource_ThrowsInvalidEnumArgumentException(AutoCompleteSource source)
System.Windows.Forms.UI.IntegrationTests (2)
ComboBoxTests.cs (2)
27comboBox.AutoCompleteSource = AutoCompleteSource.CustomSource; 28comboBox.AutoCompleteSource = AutoCompleteSource.CustomSource;