Back to Devexpress

RepositoryItemTokenEdit.TokenAdding Event

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemtokenedit-adf18dda.md

latest1.9 KB
Original Source

RepositoryItemTokenEdit.TokenAdding Event

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

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event TokenEditTokenAddingEventHandler TokenAdding
vb
<DXCategory("Events")>
Public Event TokenAdding As TokenEditTokenAddingEventHandler

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

TokenAdded

RepositoryItemTokenEdit Class

RepositoryItemTokenEdit Members

DevExpress.XtraEditors.Repository Namespace