AutoCompleteSource 枚举

引自msdn

指定 ComboBoxTextBox 自动完成功能的源。

成员

成员名称说明
FileSystem 将文件系统指定为源。
HistoryList 包括历史记录列表中的统一资源定位器 (URL)。
RecentlyUsedList 包括最近使用的 URL 列表中的统一资源定位器 (URL)。
AllUrl HistoryListRecentlyUsedList 的等效项指定为源。
AllSystemSources FileSystemAllUrl 的等效项指定为源。当 AutoCompleteMode 已设置为某个值,而不是默认值时,此即为默认值。
FileSystemDirectories 指定仅自动完成目录名而不自动完成文件名。
CustomSource 将内置 AutoCompleteStringCollection 中的字符串指定为源。
None 指定当前没有使用任何 AutoCompleteSource。这是 AutoCompleteSource 的默认值。
ListItems 指定 ComboBox 的项表示源。

示例

this.comboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            this.comboBox1.AutoCompleteSource = AutoCompleteSource.ListItems;

posted @ 2011-06-11 23:03  __陆杨  阅读(412)  评论(0编辑  收藏  举报