Back to Devexpress

TdxTokenEditTokenCollectionChangingEvent Type

vcl-dxtokenedit-95d74702.md

latest1.6 KB
Original Source

TdxTokenEditTokenCollectionChangingEvent Type

The type of all events that are raised prior to changes in the token editor‘s collection of tokens.

Declaration

delphi
TdxTokenEditTokenCollectionChangingEvent = procedure(Sender: TObject; const ATokenText: string; AToken: TdxTokenEditToken; var AAllow: Boolean) of object;

Parameters

NameType
SenderTObject
ATokenTextstring
ATokenTdxTokenEditToken
AAllowBoolean

Remarks

The Sender parameter specifies the token editor in which the event occurs.

The AAllow parameter can be used to allow or forbid changes to the editor’s token collection.

The AToken and ATokenText parameters are used to address the added/removed token and its text ID within the token collection changing event handler, respectively.

The TdxTokenEditTokenCollectionChangingEvent type is referenced by the token editor’s Properties.OnTokenAdd and Properties.OnTokenDelete events.

See Also

dxTokenEdit Unit