Back to Devexpress

TokenBoxProperties.Tokens Property

aspnet-devexpress-dot-web-dot-tokenboxproperties.md

latest2.0 KB
Original Source

TokenBoxProperties.Tokens Property

Provide access to a collection of editor tokens.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDescription
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.

See Also

Token Box

Text

Value

TokenBoxProperties Class

TokenBoxProperties Members

DevExpress.Web Namespace