Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BarcodeGeneratorDisplayText - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class BarcodeGeneratorDisplayText

    Specifies the class which contains barcode display text data and functionalities.

    Inheritance
    System.Object
    Syncfusion.Blazor.SfBaseComponent
    BarcodeGeneratorDisplayText
    Namespace: Syncfusion.Blazor.BarcodeGenerator
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class BarcodeGeneratorDisplayText : SfBaseComponent
    Examples
    <SfBarcodeGenerator Width="200" Height="200" Value="65213323" Type="BarcodeType.Code11" BackgroundColor="white" ForeColor="black" EnableCheckSum="true" >
      <BarcodeGeneratorDisplayText Text = "" Font="monospace" Size="25" Alignment="Alignment.Right" Position="TextPosition.Top" Visibility="true">
      <BarcodeTextMargin Left = "0" Top="0" Right="0" Bottom="0"></BarcodeTextMargin>
      </BarcodeGeneratorDisplayText>
    </SfBarcodeGenerator>

    Constructors

    BarcodeGeneratorDisplayText()

    Declaration
    public BarcodeGeneratorDisplayText()

    Properties

    Alignment

    Defines the horizontal alignment of the text. By default, it is set to Center.

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

    ChildContent

    Sets content for Barcode generator display text element including HTML support and its customizations

    Declaration
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment

    Font

    Defines the font style of the text. By default, it is set to monospace.

    Declaration
    public string Font { get; set; }
    Property Value
    Type Description
    System.String

    Margin

    It sets the space to be left between the text and its barcode. By default, it is set to 10 from all sides.

    Declaration
    public BarcodeTextMargin Margin { get; set; }
    Property Value
    Type Description
    BarcodeTextMargin

    Position

    Defines the position of the text. By default, it is set to Bottom.

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

    Size

    Defines the size of the text. By default, it is set to 20.

    Declaration
    public double Size { get; set; }
    Property Value
    Type Description
    System.Double

    Text

    Sets the textual description of the barcode.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    System.String

    Visibility

    Defines the visibility of the text. By default, it is set to true.

    Declaration
    public bool Visibility { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    OnInitializedAsync()

    OnInitializedAsync is invoked when the component is initialized.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task
    Overrides
    Syncfusion.Blazor.SfBaseComponent.OnInitializedAsync()
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved