Back to Devexpress

TextEditAdvancedModeOptions.AutoCompleteMode Property

windowsforms-devexpress-dot-xtraeditors-dot-texteditadvancedmodeoptions-3e2af414.md

latest3.9 KB
Original Source

TextEditAdvancedModeOptions.AutoCompleteMode Property

Gets or sets text autocompletion mode. This property is in effect if the RepositoryItemTextEdit.UseAdvancedMode option is enabled.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(TextEditAutoCompleteMode.None)]
[DXCategory("Behavior")]
public virtual TextEditAutoCompleteMode AutoCompleteMode { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(TextEditAutoCompleteMode.None)>
Public Overridable Property AutoCompleteMode As TextEditAutoCompleteMode

Property Value

TypeDefaultDescription
TextEditAutoCompleteModeNone

The text completion behavior of the TextEdit.

|

Available values:

NameDescription
None

Text auto-completion is disabled.

| | Suggest |

The editor displays a drop-down list with suggestions when a user types the first word in the edit box.

| | Append |

The editor automatically completes the first entered word in the edit box. The editor uses the first matching suggestion from a source of suggestions.

| | SuggestAppend |

The editor uses a combination of the Append and Suggest options — it automatically completes the first word in the edit box, and displays a drop-down list with suggestions.

| | SuggestSingleWord |

The editor displays a drop-down list with custom suggestions every time a user types a new word in the edit box. The editor automatically sets the AutoCompleteSource option to CustomSource in SuggestSingleWord mode. Use the CustomizeAutoCompleteSource event, or AutoCompleteCustomSource collection to specify the custom auto-complete suggestions.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AutoCompleteMode
RepositoryItemTextEdit

.AdvancedModeOptions .AutoCompleteMode

|

Remarks

The AutoCompleteMode property allows you to specify text autocompletion mode.

Use the AutoCompleteSource property to specify the source of text suggestions for autocomplete mode.

See the following topic for more information: Text Autocompletion.

See Also

UseAdvancedMode

AutoCompleteSource

CustomizeAutoCompleteSource

TextEditAdvancedModeOptions Class

TextEditAdvancedModeOptions Members

DevExpress.XtraEditors Namespace