windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemtokenedit-f360937c.md
Gets or sets whether an end-user can manually enter and validate any desired text within this TokenEdit.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(TokenEditMode.Default)]
[DXCategory("Behavior")]
public TokenEditMode EditMode { get; set; }
<DXCategory("Behavior")>
<DefaultValue(TokenEditMode.Default)>
Public Property EditMode As TokenEditMode
| Type | Default | Description |
|---|---|---|
| DevExpress.XtraEditors.TokenEditMode | Default |
A DevExpress.XtraEditors.TokenEditMode enumerator value that specifies whether an end-user can manually enter and validate any desired text within this TokenEdit.
|
Depending on the EditMode property value, the TokenEdit control can operate in either Manual or Token List mode.
See the Token Edit Control topic for the details.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EditMode 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.
winforms-tokenedit-checked-tokens/CS/TokenEdit_Glyph_InEndOfToken/Form1.cs#L31
edit.Separators.AddRange(new string[] { "," });
edit.EditMode = TokenEditMode.Manual;
edit.ValidateToken += tokenEdit1_ValidateToken;
See Also