New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class HighlightTextInfo

Inheritance: objectHighlightTextInfo

Constructors

Initializes a new instance of the HighlightTextInfo class.

C#
public HighlightTextInfo(int index, int length, string text, Brush foreground, Brush background)
Parameters:indexintlengthinttextstringforegroundBrushbackgroundBrush

Properties

Gets the background that will be applied to this match.

C#
public Brush Background { get; }

Gets the foreground that will be applied to this match.

C#
public Brush Foreground { get; }

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

C#
public int Index { get; }

Gets the length of the matching text.

C#
public int Length { get; }

Gets the portion of the text that will be highlighted.

C#
public string Text { get; }

TextRange

TextRange

Gets the TextRange that will be highlighted.

C#
public TextRange TextRange { get; }