Class QRCodeGeneratorBuilder
Inheritance
System.Object
QRCodeGeneratorBuilder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Syncfusion.EJ2.dll
Syntax
public class QRCodeGeneratorBuilder : ControlBuilder
Constructors
QRCodeGeneratorBuilder()
Declaration
public QRCodeGeneratorBuilder()
QRCodeGeneratorBuilder(QRCodeGenerator)
Declaration
public QRCodeGeneratorBuilder(QRCodeGenerator model)
Parameters
Fields
model
Declaration
public QRCodeGenerator 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 QR code.
Declaration
public QRCodeGeneratorBuilder BackgroundColor(string backgroundColor)
Parameters
Type |
Name |
Description |
System.String |
backgroundColor |
|
Returns
DisplayText(QRCodeGeneratorDisplayText)
Defines the text properties for the QR code.
Declaration
public QRCodeGeneratorBuilder DisplayText(QRCodeGeneratorDisplayText displayText)
Parameters
Returns
DisplayText(Action<QRCodeGeneratorDisplayTextBuilder>)
Declaration
public QRCodeGeneratorBuilder DisplayText(Action<QRCodeGeneratorDisplayTextBuilder> displayText)
Parameters
Returns
EnablePersistence(Boolean)
Enable or disable persisting component's state between page reloads.
Declaration
public QRCodeGeneratorBuilder 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 QRCodeGeneratorBuilder EnableRtl(bool enableRtl = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableRtl |
|
Returns
ErrorCorrectionLevel(ErrorCorrectionLevel)
Defines the error correction level of the QR code.
Declaration
public QRCodeGeneratorBuilder ErrorCorrectionLevel(ErrorCorrectionLevel errorCorrectionLevel)
Parameters
Returns
ForeColor(String)
Defines the forecolor of the QR code.
Declaration
public QRCodeGeneratorBuilder ForeColor(string foreColor)
Parameters
Type |
Name |
Description |
System.String |
foreColor |
|
Returns
Height(Double)
Defines the height of the QR code model.
Declaration
public QRCodeGeneratorBuilder Height(double height)
Parameters
Type |
Name |
Description |
System.Double |
height |
|
Returns
Height(String)
Defines the height of the QR code model.
Declaration
public QRCodeGeneratorBuilder 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 QRCodeGeneratorBuilder HtmlAttributes(object htmlAttributes)
Parameters
Type |
Name |
Description |
System.Object |
htmlAttributes |
|
Returns
Invalid(String)
Triggers if you enter any invalid character.
Declaration
public QRCodeGeneratorBuilder 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 QRCodeGeneratorBuilder Locale(string locale)
Parameters
Type |
Name |
Description |
System.String |
locale |
|
Returns
Margin(QRCodeGeneratorMargin)
Defines the margin properties for the QR code.
Declaration
public QRCodeGeneratorBuilder Margin(QRCodeGeneratorMargin margin)
Parameters
Returns
Margin(Action<QRCodeGeneratorMarginBuilder>)
Declaration
public QRCodeGeneratorBuilder Margin(Action<QRCodeGeneratorMarginBuilder> margin)
Parameters
Returns
Mode(RenderingMode)
Defines the QR code rendering mode.
Declaration
public QRCodeGeneratorBuilder Mode(RenderingMode mode)
Parameters
Returns
Render()
Declaration
public HtmlString Render()
Returns
Type |
Description |
System.Web.HtmlString |
|
Value(String)
Defines the type of barcode to be rendered.
Declaration
public QRCodeGeneratorBuilder Value(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Version(QRCodeVersion)
Defines the version of the QR code.
Declaration
public QRCodeGeneratorBuilder Version(QRCodeVersion version)
Parameters
Returns
Width(Double)
Defines the width of the QR code model.
Declaration
public QRCodeGeneratorBuilder Width(double width)
Parameters
Type |
Name |
Description |
System.Double |
width |
|
Returns
Width(String)
Defines the width of the QR code model.
Declaration
public QRCodeGeneratorBuilder Width(string width)
Parameters
Type |
Name |
Description |
System.String |
width |
|
Returns
XDimension(Double)
Defines the xDimension of the QR code model.
Declaration
public QRCodeGeneratorBuilder XDimension(double xDimension)
Parameters
Type |
Name |
Description |
System.Double |
xDimension |
|
Returns