Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

#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.

See Also