Skip to main content
A newer version of this page is available. .
All docs
V21.2

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.v21.2.dll

NuGet Packages: DevExpress.Win.Design, 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