Class
HighlightTextInfo

Stores information for a portion of the RadHighlightTextBlock text that needs to be highlighted.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class HighlightTextInfo

Inheritance: objectHighlightTextInfo

Constructors

HighlightTextInfo(int, int, string, Brush, Brush)

Initializes a new instance of the HighlightTextInfo class.

Declaration

cs-api-definition
public HighlightTextInfo(int index, int length, string text, Brush foreground, Brush background)

Parameters

index

int

length

int

text

string

foreground

Brush

background

Brush

Properties

Background

Gets the background that will be applied to this match.

Declaration

cs-api-definition
public Brush Background { get; }

Property Value

Brush

Foreground

Gets the foreground that will be applied to this match.

Declaration

cs-api-definition
public Brush Foreground { get; }

Property Value

Brush

Index

Gets the starting index of the match within the entire text.

Declaration

cs-api-definition
public int Index { get; }

Property Value

int

Length

Gets the length of the matching text.

Declaration

cs-api-definition
public int Length { get; }

Property Value

int

Text

Gets the portion of the text that will be highlighted.

Declaration

cs-api-definition
public string Text { get; }

Property Value

string

TextRange

Gets the TextRange that will be highlighted.

Declaration

cs-api-definition
public TextRange TextRange { get; }

Property Value

TextRange