Class BarcodeGeneratorBuilder
Inheritance
System.Object
BarcodeGeneratorBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class BarcodeGeneratorBuilder : ControlBuilder
Constructors
BarcodeGeneratorBuilder()
Declaration
public BarcodeGeneratorBuilder()
BarcodeGeneratorBuilder(BarcodeGenerator)
Declaration
public BarcodeGeneratorBuilder(BarcodeGenerator model)
Parameters
Fields
model
Declaration
public BarcodeGenerator model
Field Value
Properties
HtmlAttr
Declaration
public IDictionary<string, object> HtmlAttr { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
|
ID
Declaration
public string ID { get; set; }
Property Value
Type |
Description |
System.String |
|
Output
Declaration
public override TextWriter Output { get; set; }
Property Value
Type |
Description |
System.IO.TextWriter |
|
Overrides
Methods
BackgroundColor(String)
Defines the background color of the barcode.
Declaration
public BarcodeGeneratorBuilder BackgroundColor(string backgroundColor)
Parameters
Type |
Name |
Description |
System.String |
backgroundColor |
|
Returns
DisplayText(BarcodeGeneratorDisplayText)
Defines the text properties for the barcode.
Declaration
public BarcodeGeneratorBuilder DisplayText(BarcodeGeneratorDisplayText displayText)
Parameters
Returns
DisplayText(Action<BarcodeGeneratorDisplayTextBuilder>)
Declaration
public BarcodeGeneratorBuilder DisplayText(Action<BarcodeGeneratorDisplayTextBuilder> displayText)
Parameters
Returns
EnableCheckSum(Boolean)
Defines the checksum for the barcode.
Declaration
public BarcodeGeneratorBuilder EnableCheckSum(bool enableCheckSum = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableCheckSum |
|
Returns
EnablePersistence(Boolean)
Enable or disable persisting component's state between page reloads.
Declaration
public BarcodeGeneratorBuilder EnablePersistence(bool enablePersistence = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enablePersistence |
|
Returns
EnableRtl(Boolean)
Enable or disable rendering component in right to left direction.
Declaration
public BarcodeGeneratorBuilder EnableRtl(bool enableRtl = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableRtl |
|
Returns
ForeColor(String)
Defines the forecolor of the barcode.
Declaration
public BarcodeGeneratorBuilder ForeColor(string foreColor)
Parameters
Type |
Name |
Description |
System.String |
foreColor |
|
Returns
Height(Double)
Defines the height of the barcode model.
Declaration
public BarcodeGeneratorBuilder Height(double height)
Parameters
Type |
Name |
Description |
System.Double |
height |
|
Returns
Height(String)
Defines the height of the barcode model.
Declaration
public BarcodeGeneratorBuilder Height(string height)
Parameters
Type |
Name |
Description |
System.String |
height |
|
Returns
HtmlAttributes(Object)
Allows additional HTML attributes such as title, name, etc., and
accepts n number of attributes in a key-value pair format.
Declaration
public BarcodeGeneratorBuilder HtmlAttributes(object htmlAttributes)
Parameters
Type |
Name |
Description |
System.Object |
htmlAttributes |
|
Returns
Invalid(String)
Triggers if you enter any invalid character.
Declaration
public BarcodeGeneratorBuilder Invalid(string invalid)
Parameters
Type |
Name |
Description |
System.String |
invalid |
|
Returns
Locale(String)
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public BarcodeGeneratorBuilder Locale(string locale)
Parameters
Type |
Name |
Description |
System.String |
locale |
|
Returns
Margin(BarcodeGeneratorMargin)
Defines the margin properties for the barcode.
Declaration
public BarcodeGeneratorBuilder Margin(BarcodeGeneratorMargin margin)
Parameters
Returns
Margin(Action<BarcodeGeneratorMarginBuilder>)
Declaration
public BarcodeGeneratorBuilder Margin(Action<BarcodeGeneratorMarginBuilder> margin)
Parameters
Returns
Mode(RenderingMode)
Defines the barcode rendering mode.
SVG - Renders the bar-code objects as SVG elements
Canvas - Renders the bar-code in a canvas
Declaration
public BarcodeGeneratorBuilder Mode(RenderingMode mode)
Parameters
Returns
Render()
Declaration
public HtmlString Render()
Returns
Type |
Description |
Microsoft.AspNetCore.Html.HtmlString |
|
Type(BarcodeType)
Defines the type of barcode to be rendered.
Declaration
public BarcodeGeneratorBuilder Type(BarcodeType type)
Parameters
Returns
Value(String)
Defines the value of the barcode to be rendered.
Declaration
public BarcodeGeneratorBuilder Value(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Width(Double)
Defines the width of the barcode model.
Declaration
public BarcodeGeneratorBuilder Width(double width)
Parameters
Type |
Name |
Description |
System.Double |
width |
|
Returns
Width(String)
Defines the width of the barcode model.
Declaration
public BarcodeGeneratorBuilder Width(string width)
Parameters
Type |
Name |
Description |
System.String |
width |
|
Returns