TextHighlighter TextHighlighter TextHighlighter TextHighlighter Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Represents an object that highlights one or more ranges of text.

public : class TextHighlighter : ITextHighlighterpublic class TextHighlighter : ITextHighlighterPublic Class TextHighlighter Implements ITextHighlighter// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Constructors

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

Prerelease. Initializes a new instance of the TextHighlighter class.

public : TextHighlighter()public TextHighlighter()Public Sub New()// This API is not available in Javascript.

Properties

Background Background Background Background

Prerelease. Gets or sets the brush used to highlight the text.

public : Brush Background { get; set; }public Brush Background { get; set; }Public ReadWrite Property Background As Brush// This API is not available in Javascript.
Value
Brush Brush Brush Brush

The brush used to highlight the text.

BackgroundProperty BackgroundProperty BackgroundProperty BackgroundProperty

Prerelease. Identifies the Background dependency property.

public : static DependencyProperty BackgroundProperty { get; }public static DependencyProperty BackgroundProperty { get; }Public Static ReadOnly Property BackgroundProperty As DependencyProperty// This API is not available in Javascript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the Background dependency property.

Foreground Foreground Foreground Foreground

Prerelease. Gets or sets the brush used to color highlighted text.

public : Brush Foreground { get; set; }public Brush Foreground { get; set; }Public ReadWrite Property Foreground As Brush// This API is not available in Javascript.
Value
Brush Brush Brush Brush

The brush used to color highlighted text.

ForegroundProperty ForegroundProperty ForegroundProperty ForegroundProperty

Prerelease. Identifies the Foreground dependency property.

public : static DependencyProperty ForegroundProperty { get; }public static DependencyProperty ForegroundProperty { get; }Public Static ReadOnly Property ForegroundProperty As DependencyProperty// This API is not available in Javascript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the Foreground dependency property.

Ranges Ranges Ranges Ranges

Prerelease. Gets the text ranges to highlight.

public : IVector<TextRange> Ranges { get; }public IList<TextRange> Ranges { get; }Public ReadOnly Property Ranges As IList<TextRange>// This API is not available in Javascript.
Value
IVector<TextRange> IList<TextRange> IList<TextRange> IList<TextRange>

The collection of text ranges to highlight.