New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a label control that can highlight specific text within its content.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class RadHighlightLabel : Label

Inheritance: objectRadHighlightLabel

Constructors

Initializes a new instance of the RadHighlightLabel class.

C#
public RadHighlightLabel()

Fields

ActualTextColorProperty

BindableProperty

Identifies the ActualTextColor property.

C#
public static readonly BindableProperty ActualTextColorProperty

Identifies the HighlightTextColor property.

C#
public static BindableProperty HighlightTextColorProperty

HighlightTextProperty

BindableProperty

Identifies the HighlightText property.

C#
public static BindableProperty HighlightTextProperty

ProviderProperty

BindableProperty

Identifies the Provider property.

C#
public static BindableProperty ProviderProperty

UnformattedTextProperty

BindableProperty

Identifies the UnformattedText property.

C#
public static BindableProperty UnformattedTextProperty

Properties

Gets the actual text color of the label.

C#
public Color ActualTextColor { get; }

Gets or sets the text that will be highlighted.

C#
public string HighlightText { get; set; }

Gets or sets the color for the text that is highlighted.

C#
public Color HighlightTextColor { get; set; }

Gets or sets the IHighlightLabelProvider for the label.

C#
public IHighlightLabelProvider Provider { get; set; }

Gets or sets the unformatted text.

C#
public string UnformattedText { get; set; }

Methods

C#
protected override void OnHandlerChanged()
C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring