Class RadzenText
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
ChildContent
The child content (markup) that will be displayed. Setting the Text property will override it.
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
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
Text
The text that will be displayed.
[Parameter]
public string Text { get; set; }
Property Value
TextAlign
The horozontal alignment of the text.
[Parameter]
public TextAlign TextAlign { get; set; }
Property Value
TextStyle
The style of the text. Set to Body1 by default.
[Parameter]
public TextStyle TextStyle { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder builder)
Parameters
builder
RenderTreeBuilder