Skip to main content
Tab

ASPxTokenBox.Tokens Property

Provide access to a collection of editor tokens.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public TokenCollection Tokens { get; set; }

Property Value

Type Description
TokenCollection

A TokenCollection instance that is the collection of tokens.

Remarks

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.

This property is a wrapper of the TokenBoxProperties.Tokens property.

See Also