menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BarcodeGenerator - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class BarcodeGenerator

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    BarcodeGenerator
    Namespace: Syncfusion.EJ2.BarcodeGenerator
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class BarcodeGenerator : EJTagHelper

    Constructors

    BarcodeGenerator()

    Declaration
    public BarcodeGenerator()

    Properties

    BackgroundColor

    Defines the background color of the barcode.

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

    The default value is "white"

    DisplayText

    Defines the text properties for the barcode.

    Declaration
    public BarcodeGeneratorDisplayText DisplayText { get; set; }
    Property Value
    Type Description
    BarcodeGeneratorDisplayText

    The default value is null

    EnableCheckSum

    Defines the checksum for the barcode.

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

    The default value is true

    EnablePersistence

    Enable or disable persisting component's state between page reloads.

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

    The default value is false

    EnableRtl

    Enable or disable rendering component in right to left direction.

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

    The default value is false

    ForeColor

    Defines the forecolor of the barcode.

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

    The default value is "black"

    Height

    Defines the height of the barcode model.

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

    The default value is "100"

    HtmlAttributes

    Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.

    Declaration
    public object HtmlAttributes { get; set; }
    Property Value
    Type
    System.Object

    Invalid

    Triggers if you enter any invalid character.

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

    The default value is null

    Locale

    Overrides the global culture and localization value for this component. Default global culture is 'en-US'.

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

    The default value is ""

    Margin

    Defines the margin properties for the barcode.

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

    The default value is null

    Mode

    Defines the barcode rendering mode. SVG - Renders the bar-code objects as SVG elements Canvas - Renders the bar-code in a canvas

    Declaration
    public RenderingMode Mode { get; set; }
    Property Value
    Type Description
    RenderingMode

    The default value is RenderingMode.SVG

    Type

    Defines the type of barcode to be rendered.

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

    The default value is BarcodeType.Code128

    Value

    Defines the value of the barcode to be rendered.

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

    The default value is null

    Width

    Defines the width of the barcode model.

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

    The default value is "100%"

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved