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.
- C#
- VB.NET
public class ejBarcode : ejBase
Public Class ejBarcode
Inherits ejBase
The Barcode provides you with a simple and inexpensive method of encoding text information that can be easily read by electronic readers.
Constructors
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);
ejBarcode(options)
Constructs a new instance of the ejBarcode class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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
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.
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";