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, Color) Method

In This Article

Highlights a text block at a specified position using a custom foreground color.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public void HighlightRange(
    int startIndex,
    int length,
    Color foreColor
)

#Parameters

Name Type Description
startIndex Int32

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

length Int32

The length of the text block.

foreColor Color

A custom foreground color used to paint the text block.

See Also