AutoComplete supports multiple filtering criteria's that can be used to filter the items list based on the user input. These filtering criteria's are defined in the AutoCompleteMode enumeration and can be set using the AutoCompleteMode property. The AutoCompleteMode property works as a series of flags, therefore, you can set multiple filtering criteria. The property AutoCompleteMode accepts values from AutoCompleteMode enumeration which specifies the mode for automatic completion in the control through following values:
The following image shows how the AutoComplete control appears after setting the AutoCompleteMode property.
The following code example shows setting the auto complete mode feature in the AutoComplete control.
C# |
コードのコピー
|
---|---|
autoComplete.AutoCompleteMode = AutoCompleteMode.Contains | AutoCompleteMode.StartsWith; |