Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenText

    A component which displays text or makup with predefined styling.

    Inheritance
    System.Object
    RadzenComponent
    RadzenText
    Implements
    IDisposable
    Inherited Members
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.OnContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.GetComponentCssClass()
    RadzenComponent.Debounce(Func<Task>, Int32)
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.OnInitialized()
    RadzenComponent.SetParametersAsync(ParameterView)
    RadzenComponent.Reference
    RadzenComponent.OnAfterRenderAsync(Boolean)
    RadzenComponent.RaiseContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.Dispose()
    RadzenComponent.CurrentStyle
    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

    Implements

    IDisposable

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT