Barcode
Kendo UI Barcode component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Barcode : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBaseBarcode
Implements:
Inherited Members
Constructors
Initializes a new instance of the Barcode class.
Properties
The background of the barcode area. Any valid CSS color string will work here, including hex and rgb.
public string Background { get; set; }
The border of the barcode area.
public BarcodeBorderSettings Border { get; }
If set to true, the Barcode will display the checksum digit next to the value in the text area.
public bool? Checksum { get; set; }
The color of the bar elements. Any valid CSS color string will work here, including hex and rgb.
public string Color { get; set; }
Encoding member.
public BarcodeSymbology Encoding { get; set; }
The height of the barcode in pixels. By default the height is 100.
public double? Height { get; set; }
The padding of the barcode.
public BarcodePaddingSettings Padding { get; }
Sets the preferred rendering engine. If it is not supported by the browser, the Barcode will switch to the first available mode.The supported values are: "canvas" - renders the widget as a Canvas element, if available. or "svg" - renders the widget as inline SVG document, if available.
public RenderingMode? RenderAs { get; set; }
Can be set to a JavaScript object which represents the text configuration.
public BarcodeTextSettings Text { get; }
Methods
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
VerifySettings method.
public override void VerifySettings()
Overrides:
Writes the HTML content.
protected override void WriteHtml(TextWriter writer)
The text writer.
Overrides:
WriteInitializationScript method.
public override void WriteInitializationScript(TextWriter writer)
Overrides: