Skip to main content
All docs
V23.2

TextEditCustomHighlightTextEventArgs.HighlightRange(Int32, Int32, Color, Color) Method

Highlights a text block at a specific position using custom foreground and background colors.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

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

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.

backColor Color

A custom background color to paint the text block.

See Also