BarcodeBuilder
Defines the fluent API for configuring the Kendo UI Barcode
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class BarcodeBuilder : WidgetBuilderBase<Barcode, BarcodeBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Barcode, BarcodeBuilder>BarcodeBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the BarcodeBuilder class.
Methods
The background of the barcode area. Any valid CSS color string will work here, including hex and rgb.
public BarcodeBuilder Background(string value)
The value for Background
Returns:Returns the current BarcodeBuilder instance.
The border of the barcode area.
public BarcodeBuilder Border(Action<BarcodeBorderSettingsBuilder> configurator)
The BarcodeBorderSettingsBuilder for the border setting.
Returns:Returns the current instance of BarcodeBuilder .
If set to true, the Barcode will display the checksum digit next to the value in the text area.
If set to true, the Barcode will display the checksum digit next to the value in the text area.
public BarcodeBuilder Checksum(bool value)
The value for Checksum
Returns:Returns the current BarcodeBuilder instance.
The color of the bar elements. Any valid CSS color string will work here, including hex and rgb.
public BarcodeBuilder Color(string value)
The value for Color
Returns:Returns the current BarcodeBuilder instance.
The symbology used by the Barcode.
public BarcodeBuilder Encoding(BarcodeSymbology encoding)
The configurator for the encoding setting.
Returns:Returns the current BarcodeBuilder instance.
The height of the barcode in pixels. By default the height is 100.
public BarcodeBuilder Height(double value)
The value for Height
Returns:Returns the current BarcodeBuilder instance.
The padding of the barcode.
public BarcodeBuilder Padding(Action<BarcodePaddingSettingsBuilder> configurator)
The BarcodePaddingSettingsBuilder for the padding setting.
Returns:Returns the current instance of BarcodeBuilder .
The padding of the Barcode.
public BarcodeBuilder Padding(double padding)
The configurator for the padding setting.
Returns:Returns the current BarcodeBuilder instance.
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 BarcodeBuilder RenderAs(RenderingMode value)
The value for RenderAs
Returns:Returns the current BarcodeBuilder instance.
Can be set to a JavaScript object which represents the text configuration.
public BarcodeBuilder Text(Action<BarcodeTextSettingsBuilder> configurator)
The BarcodeTextSettingsBuilder for the text setting.
Returns:Returns the current instance of BarcodeBuilder .
The initial value of the Barcode
public BarcodeBuilder Value(string value)
The value for Value
Returns:Returns the current BarcodeBuilder instance.
The width of the barcode in pixels. By default the width is 300.
public BarcodeBuilder Width(double value)
The value for Width
Returns:Returns the current BarcodeBuilder instance.