Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenText

    A component which displays text or makup with predefined styling.

    Inheritance
    object
    ComponentBase
    RadzenComponent
    RadzenText
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    RadzenComponent.OnMouseEnter()
    RadzenComponent.OnMouseLeave()
    RadzenComponent.OnContextMenu(MouseEventArgs)
    RadzenComponent.GetCssClass()
    RadzenComponent.GetId()
    RadzenComponent.GetComponentCssClass()
    RadzenComponent.Debounce(Func<Task>, int)
    RadzenComponent.OnInitialized()
    RadzenComponent.SetParametersAsync(ParameterView)
    RadzenComponent.OnAfterRenderAsync(bool)
    RadzenComponent.RaiseContextMenu(MouseEventArgs)
    RadzenComponent.RaiseMouseEnter()
    RadzenComponent.RaiseMouseLeave()
    RadzenComponent.Dispose()
    RadzenComponent.Attributes
    RadzenComponent.Element
    RadzenComponent.MouseEnter
    RadzenComponent.MouseLeave
    RadzenComponent.ContextMenu
    RadzenComponent.Culture
    RadzenComponent.DefaultCulture
    RadzenComponent.Style
    RadzenComponent.Visible
    RadzenComponent.UniqueID
    RadzenComponent.JSRuntime
    RadzenComponent.IsJSRuntimeAvailable
    RadzenComponent.Reference
    RadzenComponent.CurrentStyle
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.StateHasChanged()
    ComponentBase.ShouldRender()
    ComponentBase.OnAfterRender(bool)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.DispatchExceptionAsync(Exception)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenText : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Examples
    <RadzenText TextStyle="TextStyle.H1">
     Hello World
    </RadzenText>

    Constructors

    RadzenText()

    A component which displays text or makup with predefined styling.

    Declaration
    public RadzenText()
    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
    [Parameter]
    public string Anchor { get; set; }
    Property Value
    Type Description
    string

    ChildContent

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

    Declaration
    [Parameter]
    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
    [Parameter]
    public TagName TagName { get; set; }
    Property Value
    Type Description
    TagName

    Text

    The text that will be displayed.

    Declaration
    [Parameter]
    public string Text { get; set; }
    Property Value
    Type Description
    string

    TextAlign

    The horozontal alignment of the text.

    Declaration
    [Parameter]
    public TextAlign TextAlign { get; set; }
    Property Value
    Type Description
    TextAlign

    TextStyle

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

    Declaration
    [Parameter]
    public TextStyle TextStyle { get; set; }
    Property Value
    Type Description
    TextStyle

    Methods

    BuildRenderTree(RenderTreeBuilder)

    A component which displays text or makup with predefined styling.

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder builder)
    Parameters
    Type Name Description
    RenderTreeBuilder builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    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