alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class DotCodeDisplayText

    Specifies the human-readable text rendered with DotCode.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    SfBaseComponent
    DotCodeDisplayText
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(bool)
    SfBaseComponent.LicenseContext
    SfBaseComponent.OnAfterRenderAsync(bool)
    SfBaseComponent.OnObservableChange(string, object, bool, NotifyCollectionChangedEventArgs)
    SfBaseComponent.ValidateLicenseByUICategory()
    Namespace: Syncfusion.Blazor.BarcodeGenerator
    Assembly: Syncfusion.Blazor.BarcodeGenerator.dll
    Syntax
    public class DotCodeDisplayText : SfBaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    DotCodeDisplayText()

    Declaration
    public DotCodeDisplayText()

    Properties

    Alignment

    Gets or sets the horizontal text alignment.

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

    The horizontal alignment of the display text.

    ChildContent

    Gets or sets nested text-margin content.

    Declaration
    [Parameter]
    public RenderFragment? ChildContent { get; set; }
    Property Value
    Type Description
    RenderFragment

    A render fragment containing the nested DotCodeTextMargin.

    FontFamily

    Gets or sets the display-text font family.

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

    The CSS font-family value. The default is monospace.

    FontSize

    Gets or sets the display-text font size.

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

    The font size in pixels. The default is 12.

    Margin

    Gets or sets the margin configuration of the display text.

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

    A DotCodeTextMargin containing the text margins.

    Position

    Gets or sets whether text is rendered above or below the symbol.

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

    The position of the display text relative to the symbol.

    Text

    Gets or sets the display text. Empty text uses the encoded value.

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

    The text to render below or above the symbol.

    Visibility

    Gets or sets whether display text is visible.

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

    true to render display text; otherwise, false.

    Methods

    BuildRenderTree(RenderTreeBuilder)

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

    OnInitializedAsync()

    Initializes the display text and margin properties.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    A task that represents the asynchronous initialization operation.

    Overrides
    SfBaseComponent.OnInitializedAsync()

    OnParametersSetAsync()

    Handles parameter updates and refreshes the parent barcode during static server rendering when a property has changed.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    Task

    A task that represents the asynchronous parameter update operation.

    Overrides
    ComponentBase.OnParametersSetAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved