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

TextEditCustomHighlightTextEventArgs.HighlightRange(Int32, Int32, Action<TextEdit.Block>) Method

In This Article

Highlights or custom paints a text block at a specified position.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public void HighlightRange(
    int startIndex,
    int length,
    Action<TextEdit.Block> settings
)

#Parameters

Name Type Description
startIndex Int32

A zero-based start index of the target text block.

length Int32

The length of the text block.

settings Action<TextEdit.Block>

Allows you to specify display settings or a custom painter for the text block.

See Also