aspnet-devexpress-dot-web-dot-tokenboxproperties.md
Provide access to a collection of editor tokens.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public TokenCollection Tokens { get; set; }
Public Property Tokens As TokenCollection
| Type | Description |
|---|---|
| TokenCollection |
A TokenCollection instance that is the collection of tokens.
|
Use the Tokens property to access a collection of tokens in the editor. The collection provides methods and properties that allow you to add new tokens and remove existing ones, access individual tokens, etc.
Note
Tokens in a collection must be unique, so adding a token with text which is already contained in the collection does nothing.
Tokens cannot contain a comma (,), semicolon (;), or a sign specified by the ASPxTokenBox.TextSeparator property. When an end-user types a token, these signs end a token input.
The ItemValueType property values should be equal to the item’s value type (string, by default).
Starting with v19.1.4, add a custom token to the item collection before you add this item to the Tokens collection.
See Also