Table of Contents

Class MudHighlighter

Namespace
MudBlazor
Assembly
MudBlazor.dll

A component which highlights words or phrases within text.

public class MudHighlighter : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
Inheritance
MudHighlighter
Implements
Inherited Members
Extension Methods

Constructors

MudHighlighter()

public MudHighlighter()

Properties

CaseSensitive

Whether highlighted text is case sensitive.

[Parameter]
[Category("Behavior")]
public bool CaseSensitive { get; set; }

Property Value

bool

Remarks

Defaults to false.

HighlightedText

The text to highlight within Text.

[Parameter]
[Category("Behavior")]
public string? HighlightedText { get; set; }

Property Value

string

HighlightedTexts

The multiple text fragments to highlight within Text.

[Parameter]
[Category("Behavior")]
public IEnumerable<string> HighlightedTexts { get; set; }

Property Value

IEnumerable<string>

Markup

Renders text as a RenderFragment.

[Parameter]
[Category("Appearance")]
public bool Markup { get; set; }

Property Value

bool

Remarks

Defaults to false.

Text

The text to consider for highlighting.

[Parameter]
[Category("Behavior")]
public string? Text { get; set; }

Property Value

string

UntilNextBoundary

Highlights text until the next RegEx boundary.

[Parameter]
[Category("Behavior")]
public bool UntilNextBoundary { get; set; }

Property Value

bool

Remarks

Defaults to false.

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

OnParametersSet()

protected override void OnParametersSet()