TdxTokenEditTokens.Add(string,string,string,TdxSmartGlyph,TcxImageIndex) Method
Adds a new token to the collection.
Declaration
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