Skip to main content
A newer version of this page is available. .

ASPxClientTokenBox.GetText Method

Gets the token texts, separated with a sign, specified by the ASPxTokenBox.TextSeparator property.

Declaration

GetText(): string

Returns

Type Description
string

A string value consisting of token texts separated by a text separator.

Remarks

Use the GetText property to get a string containing editor token texts, separated with a sign specified by the ASPxTokenBox.TextSeparator property.

To set the token text, use the ASPxClientTokenBox.SetText method.

Note

Tokens in a collection must be unique, so the adding a token with text already contained in the collection, does nothing.

Example

ASPxTokenBox_SetGetText

//this code results in an image above
myToken.SetText('naomi.moreno@example.net;heidi.lopez@example.net;jessie.she@example.net');

//now the GetText() method returns the initial string
See Also