Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxTokenEditTokens.Add(string,string,string,TdxSmartGlyph,TcxImageIndex) Method

Adds a new token to the collection.

#Declaration

Delphi
function Add(const AText: string; const ADisplayText: string = ''; const AHint: string = ''; AGlyph: TdxSmartGlyph = nil; AImageIndex: TcxImageIndex = -1): TdxTokenEditToken; overload;

#Parameters

Name Type
AText string
ADisplayText string
AHint string
AGlyph TdxSmartGlyph
AImageIndex TcxImageIndex

#Returns

Type
TdxTokenEditToken

#Remarks

Call this function to create a new token. The first overloaded variant creates a “default token” whose Text property contains the ‘Token’ string followed by the token’s index in the collection. The second overloaded variant allows you to initialize the new token’s Text, DisplayText, Hint, Glyph, and ImageIndex properties by passing the corresponding values as the AText, ADisplayText, AHint, AGlyph, and AImageIndex parameters, respectively.

See Also