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

Represents a special text block that enables coloring of specific char.

Definition

Namespace:Telerik.Windows.Controls.GridView

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

C#
public class HighlightTextBlock : TextBlock, INotifyPropertyChanged

Inheritance: objectHighlightTextBlock

Implements: INotifyPropertyChanged

Constructors

Initializes a new instance of the HighlightTextBlock class.

C#
public HighlightTextBlock()

Initializes a new instance of the HighlightTextBlock class.

C#
public HighlightTextBlock(SearchStateManager searchStateManager)
Parameters:searchStateManagerSearchStateManager

Fields

HighlightBrushProperty

DependencyProperty

Identifies the HighlightBrush dependency property.

C#
public static readonly DependencyProperty HighlightBrushProperty

HighlightTextProperty

DependencyProperty

Identifies the HighlightText dependency property.

C#
public static readonly DependencyProperty HighlightTextProperty

Properties

Gets or sets a value indicating whether the text contains matches based on the search criteria.

C#
public bool ContainsMatch { get; set; }
Property Value:

true if the text contains match; otherwise, false.

Gets or sets the data type of the property bound the to Text property.

C#
public Type DataType { get; set; }
Property Value:

The type of the property bound to TextProperty.

Gets or sets the highlight brush.

C#
public Brush HighlightBrush { get; set; }

Gets or sets the highlighted text.

C#
public string HighlightText { get; set; }

Methods

C#
public override void OnApplyTemplate()

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged