Barcode
Namespace: Wisej.Web.Ext.Webix
Assembly: Wisej.Web.Ext.Webix (4.1.0.0)
The Barcode widget represents text values in a machine-readable format by varying the widths and spacing of parallel lines. The widget uses Canvas for lines rendering.
- C#
- VB.NET
public class Barcode : wxBase
Public Class Barcode
Inherits wxBase
Constructors
Barcode()
Constructs a new instance of the Barcode class.
Example:
The following example creates an EAN-13 barcode and configures it through the options.
var barcode = new Barcode();
barcode.Options.type = "ean13";
barcode.Options.value = "123456789012";
barcode.Size = new Size(300, 150);
this.Controls.Add(barcode);
Barcode(options)
Constructs a new instance of the Barcode class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates an EAN-8 barcode passing the Webix configuration to the constructor.
var barcode = new Barcode(new
{
type = "ean8",
value = "1234567"
});
barcode.Location = new Point(20, 20);
this.Controls.Add(barcode);