Skip to main content
A newer version of this page is available. .

RepositoryItemTokenEdit.TokenClick Event

Fires whenever an end-user clicks a token displayed within this TokenEdit control.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

[DXCategory("Events")]
public event TokenEditTokenClickEventHandler TokenClick

Event Data

The TokenClick event's data class is DevExpress.XtraEditors.TokenEditTokenClickEventArgs.

Remarks

The TokenClick event occurs when an end-user clicks a token caption or token glyph currently displayed by this TokenEdit control token. You can read the e.Value and e.Description parameter to get which exact token was clicked.

Note

The TokenClick event fires regardless of which token part was clicked - token caption or token glyph. If the RepositoryItemTokenEdit.DeleteTokenOnGlyphClick property equals true, clicking the token icon will automatically remove the corresponding token, whatever code the TokenClick event handler executes.

See Also