Skip to main content

TokenBoxProperties.Tokens Property

Provide access to a collection of editor tokens.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web


public TokenCollection Tokens { get; set; }

Property Value

Type Description

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.


  • 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