Skip to main content
A newer version of this page is available. .

MaskProperties.AutoComplete Property

Gets or sets the automatic completion mode used by the editor in the RegEx mask mode.

Namespace: DevExpress.XtraEditors.Mask

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

public virtual AutoCompleteType AutoComplete { get; set; }

Property Value

Type Default Description
AutoCompleteType **Default**

An AutoCompleteType value specifying the automatic completion mode used by the editor in the RegEx mask mode.

Available values:

Name Description
Default

When set to Default, the AutoCompleteType.Strong automatic completion mode is used.

None

The automatic completion feature is disabled.

Strong

Each time an end-user types a character the editor determines if the following placeholder can be filled automatically. If only a specific character can be inserted in this position the editor automatically displays this character and moves the caret to the right of this character.

Optimistic

When an end-user enters a character in an empty edit box for the first time, the editor automatically fills all the following placeholders with the default values. For placeholders that accept only numeric values, the ‘0’ character is the default. For placeholders that accept alpha characters, the “a” character is the default.

Remarks

If the MaskProperties.MaskType property is set to MaskType.RegEx an editor’s mask uses full-functional regular expression syntax. In this mode the automatic completion feature is implemented. The editor will try to complete a value which has been partially entered by an end-user. The AutoComplete property specifies which of auto-completion modes is used for this purpose.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AutoComplete property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also