|
|
|
SftMaskAutoComplete.Mode Property |
Defines the autocomplete behavior.
Syntax
VB.NET |
Style = object.Mode As SftMaskAutoCompleteModeConstants |
||
VB |
Style = object.Mode As SftMaskAutoCompleteModeConstants |
||
C#.NET |
SftMaskAutoCompleteModeConstants Style = object.Mode; |
||
VC++ |
enum SftMaskAutoCompleteModeConstants Style = object->Mode;
|
||
C |
HRESULT object->get_Mode(enum SftMaskAutoCompleteModeConstants* Style); |
||
Delphi |
Style := object.Mode : TOleEnum; |
||
VB.NET |
object.Mode = Style As SftMaskAutoCompleteModeConstants |
||
VB |
object.Mode = Style As SftMaskAutoCompleteModeConstants |
||
C#.NET |
SftMaskAutoCompleteModeConstants object.Mode = Style; |
||
VC++ |
enum SftMaskAutoCompleteModeConstants object->Mode = Style;
|
||
C |
HRESULT object->put_Mode(enum SftMaskAutoCompleteModeConstants Style); |
||
Delphi |
object.Mode := Style : TOleEnum; |
object
A SftMaskAutoComplete object.
Style
Defines the autocomplete behavior.
Style |
Value |
Description |
0 |
The autocomplete feature is not available. |
|
1 |
As data is entered, the control searches the list of saved entries and displays matching entries as a list below the control. |
|
2 |
As data is entered, the control searches the list of saved entries and displays the remainder of the first matching item beyond the insertion point. |
|
3 |
Combines autocompleteSftMaskSuggest and autocompleteSftMaskAppend by displaying both the list below the control and the remainder of the first matching item. |
Comments
The Mode property defines the autocomplete behavior.
Saved autocomplete entries are stored in the file defined by the AutoComplete.File property.
The modes autocompleteSftMaskSuggest and autocompleteSftMaskSuggestAppend display a list of matching entries below the control. If no matching items are found, the list is not displayed. If the user selects an entry from the displayed list, the MatchAccept (or MatchCustom) event occurs.
Mode autocompleteSftMaskSuggest allows the addition of custom entries using the AutoComplete.AddTop and AutoComplete.AddBottom methods while handling the MatchAddCustomItems event. Other modes do not support custom entries. If the user selects and accepts a custom entry, the MatchCustom event occurs.