Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItemTokenEdit.CustomDrawTokenText Event

Allows you to re-paint the token text area.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Events")]
public event TokenEditCustomDrawTokenTextEventHandler CustomDrawTokenText

#Event Data

The CustomDrawTokenText event's data class is DevExpress.XtraEditors.TokenEditCustomDrawTokenTextEventArgs.

#Remarks

Handle the CustomDrawTokenText event to apply custom drawing to the token text and its background. You can also handle the RepositoryItemTokenEdit.CustomDrawTokenGlyph event to replace the default token glyph with your own custom icon. The figure below illustrates a custom drawn token.

TokenEdit - Custom Draw

Refer to the Token Edit Control topic for a detailed example.

See Also