Skip to main content

ejBarcode

Namespace: Wisej.Web.Ext.Syncfusion

Assembly: Wisej.Web.Ext.Syncfusion (4.1.0.0)

The Syncfusion Essential JS Barcode widget enables rendering of one dimension and two dimension barcodes in web page.

public class ejBarcode : ejBase

The Barcode provides you with a simple and inexpensive method of encoding text information that can be easily read by electronic readers.

Constructors​

Instance member ejBarcode()​

Constructs a new instance of the ejBarcode class.

Example:

The following example creates a QR code.

var barcode = new ejBarcode();
barcode.Options.text = "https://wisej.com";
barcode.Options.symbologyType = "qrbarcode";
barcode.Size = new Size(200, 200);
this.Controls.Add(barcode);

Instance member ejBarcode(options)​

Constructs a new instance of the ejBarcode class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a Code 39 barcode that shows the encoded text below the bars.

var barcode = new ejBarcode(new
{
text = "WISEJ-2025",
symbologyType = "code39",
displayText = true
});
barcode.Size = new Size(300, 120);
this.Controls.Add(barcode);

Properties​

Instance member ForeColor​

Color: Specifies the color of the text/data at the bottom of the barcode.

The property reads and writes the textColor option of the widget. It returns Empty when the option is not set.

Instance member Text​

String: Gets or sets the text for the ejBarcode. (Default: "")

The property reads and writes the value field of Options and raises the TextChanged event every time it is assigned. The text encoded by the Syncfusion barcode widget is defined by its text option, which is set through Options.text.

Example:

// change the text encoded in the barcode.
this.barcode1.Options.text = "WISEJ-2026";

Implements​