Back to Devexpress

RepositoryItemTokenEdit.CustomDrawTokenText Event

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemtokenedit-6cf342b8.md

latest2.1 KB
Original Source

RepositoryItemTokenEdit.CustomDrawTokenText Event

Allows you to re-paint the token text area.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

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.

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

See Also

CustomDrawTokenGlyph

Token Edit Control

RepositoryItemTokenEdit Class

RepositoryItemTokenEdit Members

DevExpress.XtraEditors.Repository Namespace