BarcodeTagHelper
Kendo UI Barcode TagHelper BarcodeTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-barcode")]
[RestrictChildren("border", new string[] { "padding", "barcode-text" })]
public class BarcodeTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseBarcodeTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-barcode name="barcode" background="#e0e0e0" value="123456789" width="200" height="100"></kendo-barcode>
Child Tags
Constructors
Initializes a new instance of the BarcodeTagHelper 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; }
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; }
The height of the barcode in pixels. By default the height is 100.
public double? Height { get; set; }
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; }
The symbology (encoding) the barcode will use.The supported values are: EAN8; EAN13; UPCE; UPCA; Code11; Code39; Code39Extended; Code93; Code93Extended; Code128; Code128A; Code128B; Code128C; GS1-128; MSImod10; MSImod11; MSImod1010; MSImod1110 or POSTNET.
public BarcodeSymbology? Type { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: