Skip to main content

RepositoryItemTokenEdit.TokenAdding Event

Occurs when a new token is about to be added to this TokenEdit.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public event TokenEditTokenAddingEventHandler TokenAdding

Event Data

The TokenAdding event's data class is DevExpress.XtraEditors.TokenEditTokenAddingEventArgs.

Remarks

Before a new token is added to this TokenEdit, the TokenAdding event fires. You can read the e.Token property to get all the info about this new token, and if required, use the e.Cancel property to prevent it from being added. If token was successfully added, the TokenAdding event is followed by the RepositoryItemTokenEdit.TokenAdded event.

See Also