TextHighlighter TextHighlighter TextHighlighter TextHighlighter Class


Represents an object that highlights one or more ranges of text.

public : class TextHighlighter
struct winrt::Windows::UI::Xaml::Documents::TextHighlighter
public class TextHighlighter
Public Class TextHighlighter

Windows 10 requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)


TextHighlighter() TextHighlighter() TextHighlighter() TextHighlighter()

Initializes a new instance of the TextHighlighter class.


Background Background Background Background

Gets or sets the brush used to highlight the text.

BackgroundProperty BackgroundProperty BackgroundProperty BackgroundProperty

Identifies the Background dependency property.

Foreground Foreground Foreground Foreground

Gets or sets the brush used to color highlighted text.

ForegroundProperty ForegroundProperty ForegroundProperty ForegroundProperty

Identifies the Foreground dependency property.

Ranges Ranges Ranges Ranges

Gets the text ranges to highlight.