Class
HighlightTextBlock

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

Definition

Namespace:Telerik.Windows.Controls.GridView

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

cs-api-definition
public class HighlightTextBlock : TextBlock, INotifyPropertyChanged

Inheritance: objectHighlightTextBlock

Implements: INotifyPropertyChanged

Constructors

HighlightTextBlock()

Initializes a new instance of the HighlightTextBlock class.

Declaration

cs-api-definition
public HighlightTextBlock()

HighlightTextBlock(SearchStateManager)

Initializes a new instance of the HighlightTextBlock class.

Declaration

cs-api-definition
public HighlightTextBlock(SearchStateManager searchStateManager)

Parameters

searchStateManager

SearchStateManager

Fields

HighlightBrushProperty

Identifies the HighlightBrush dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HighlightBrushProperty

Field Value

DependencyProperty

HighlightTextProperty

Identifies the HighlightText dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HighlightTextProperty

Field Value

DependencyProperty

Properties

ContainsMatch

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

Declaration

cs-api-definition
public bool ContainsMatch { get; set; }

Property Value

bool

true if the text contains match; otherwise, false.

DataType

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

Declaration

cs-api-definition
public Type DataType { get; set; }

Property Value

Type

The type of the property bound to TextProperty.

HighlightBrush

Gets or sets the highlight brush.

Declaration

cs-api-definition
public Brush HighlightBrush { get; set; }

Property Value

Brush

HighlightText

Gets or sets the highlighted text.

Declaration

cs-api-definition
public string HighlightText { get; set; }

Property Value

string

Methods

OnApplyTemplate()

Declaration

cs-api-definition
public override void OnApplyTemplate()

Events

PropertyChanged

Occurs when a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged