Skip to main content
All docs
V24.1

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

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.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