BarcodeBuilder
Defines the fluent interface for configuring the Barcode.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class BarcodeBuilder : WidgetBuilderBase<Barcode, BarcodeBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<Barcode, BarcodeBuilder>BarcodeBuilder
Implements:
Inherited Members
Constructors
Methods
Sets the background color of the Barcode area. The option accepts a valid CSS color string, including HEX and RGB.
public BarcodeBuilder Background(string value)
The value that configures the background color.
Returns:Configures the options for the border of the Barcode.
public BarcodeBuilder Border(Action<BarcodeBorderBuilder> configurator)
The action that configures the border.
Returns:If set to 'true', the Barcode will display the checksum digit next to the value in the text area.
public BarcodeBuilder Checksum(bool checksum)
The value for the visibility of the checksum digit.
Returns:Specifies the color of the bar elements. The option accepts a valid CSS color string, including HEX and RGB.
public BarcodeBuilder Color(string color)
The configuration of the color setting.
Returns:Sets the symbology (encoding) that will be used to encode the value of the Barcode.
public BarcodeBuilder Encoding(BarcodeSymbology encoding)
The configuration for the encoding setting.
Returns:Sets the height of the Barcode area.
public BarcodeBuilder Height(int height)
The value for the height option.
Returns:Configurator to fine tune the padding of the Barcode.
public BarcodeBuilder Padding(Action<BarcodeSpacingBuilder> configurator)
The action that configures the padding options .
Returns:Specifies the padding of the Barcode for top, bottom, right, and left at once.
public BarcodeBuilder Padding(int padding)
The configurator for the padding setting.
Returns:Sets the preferred rendering engine. If it is not supported by the browser, the Barcode will switch to the first available mode.
public BarcodeBuilder RenderAs(RenderingMode renderAs)
The preferred rendering engine.
Returns:Configures options for the text of the Barcode.
public BarcodeBuilder Text(Action<BarcodeTextBuilder> configurator)
The action that configures the text settings.
Returns:Sets the value of the barcode
public BarcodeBuilder Value(int value)
The value that configures the Barcode value.
Returns:Sets the initial value of the Barcode.
public BarcodeBuilder Value(string value)
The value that configures the Barcode value.
Returns:Sets the width of the Barcode area.
public BarcodeBuilder Width(int width)
The value for the width option.
Returns: