Skip to main content
All docs
V24.2

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

TextEdit.UpdateTextHighlight() Method

In This Article

Forces the control to update its text highlight and custom painting that you perform with the TextEdit.CustomHighlightText and RepositoryItemTextEdit.CustomHighlightText events.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public void UpdateTextHighlight()

#Remarks

The TextEdit.CustomHighlightText and RepositoryItemTextEdit.CustomHighlightText events allow you to highlight text blocks, and replace text blocks with custom graphics. The UpdateTextHighlight method forces the control to raise the CustomHighlightText events and redraw its contents.

See Also