Class RadzenText
A component which displays text or makup with predefined styling.
Implements
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenText : RadzenComponent, IDisposable
Examples
<RadzenText TextStyle="TextStyle.H1">
Hello World
</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.
Declaration
public string Anchor { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ChildContent
The child content (markup) that will be displayed. Setting the Text property will override it.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
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.
Declaration
public TagName TagName { get; set; }
Property Value
Type | Description |
---|---|
TagName |
Text
The text that will be displayed.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TextAlign
The horozontal alignment of the text.
Declaration
public TextAlign TextAlign { get; set; }
Property Value
Type | Description |
---|---|
TextAlign |
TextStyle
The style of the text. Set to Body1 by default.
Declaration
public TextStyle TextStyle { get; set; }
Property Value
Type | Description |
---|---|
TextStyle |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | builder |