閱讀英文 編輯

共用方式為


AutoCompleteSource Enum

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Specifies the source for ComboBox and TextBox automatic completion functionality.

C#
public enum AutoCompleteSource
Inheritance
AutoCompleteSource

Fields

Name Value Description
FileSystem 1

Specifies the file system as the source.

HistoryList 2

Includes the Uniform Resource Locators (URLs) in the history list.

RecentlyUsedList 4

Includes the Uniform Resource Locators (URLs) in the list of those URLs most recently used.

AllUrl 6

Specifies the equivalent of HistoryList and RecentlyUsedList as the source.

AllSystemSources 7

Specifies the equivalent of FileSystem and AllUrl as the source. This is the default value when AutoCompleteMode has been set to a value other than the default.

FileSystemDirectories 32

Specifies that only directory names and not file names will be automatically completed.

CustomSource 64

Specifies strings from a built-in AutoCompleteStringCollection as the source.

None 128

Specifies that no AutoCompleteSource is currently in use. This is the default value of AutoCompleteSource.

ListItems 256

Specifies that the items of the ComboBox represent the source.

Applies to

產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10