Table of Contents

Class RadzenText

Namespace
Radzen.Blazor
Assembly
Radzen.Blazor.dll

A component which displays text or makup with predefined styling.

public class RadzenText : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
RadzenText
Implements
Inherited Members

Examples

<RadzenText TextStyle="TextStyle.H1">
 Hello World
</RadzenText>

Constructors

RadzenText()

public RadzenText()

Properties

Anchor

Gets or sets the anchor name. If set an additional anchor will be rendered. Clicking on the anchor will scroll the page to the element with the same id.

[Parameter]
public string Anchor { get; set; }

Property Value

string

ChildContent

The child content (markup) that will be displayed. Setting the Text property will override it.

[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

TagName

The tag name of the element that will be rendered. Set to Auto which uses a default tag name depending on the current TextStyle.

[Parameter]
public TagName TagName { get; set; }

Property Value

TagName

Text

The text that will be displayed.

[Parameter]
public string Text { get; set; }

Property Value

string

TextAlign

The horozontal alignment of the text.

[Parameter]
public TextAlign TextAlign { get; set; }

Property Value

TextAlign

TextStyle

The style of the text. Set to Body1 by default.

[Parameter]
public TextStyle TextStyle { get; set; }

Property Value

TextStyle

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder builder)

Parameters

builder RenderTreeBuilder