Tab
A newer version of this page is available. Switch to the current version.

ASPxTokenBox.Tokens Property

Provide access to a collection of editor tokens.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public TokenCollection Tokens { get; set; }
Public Property Tokens As TokenCollection

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