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

RepositoryItemTokenEdit.Separators Property

Provides access to the additional separators collection that are used along with the default separator (the RepositoryItemTokenEdit.EditValueSeparatorChar property) to break the RepositoryItemTokenEdit text into separate blocks that are converted into tokens.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DXCategory("Behavior")]
public virtual StringCollection Separators { get; }

Property Value

Type Description
StringCollection

A StringCollection object that stores this TokenEdit‘s separators.

Remarks

TokenEdit separators are used to divide the entered text string into multiple text blocks. Each block is validated separately on the RepositoryItemTokenEdit.ValidateToken event. Those blocks that pass this validation are transformed into tokens, others remain as simple, editable text. You can set the separators collection either in code via the Separators property, or at design-time via the editor’s smart tag (see the image below).

TokenEdit - Edit Separators

Important

Note that a character assigned to the RepositoryItemTokenEdit.EditValueSeparatorChar property is always treated as a separator, whether it’s included in the Separators collection or not.

See Also