Class QRCodeVersion
Inheritance
Namespace: Syncfusion.Pdf.Barcode
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public sealed class QRCodeVersion : Enum
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = document.Pages.Add();
//Creates a new PDF QR barcode.
PdfQRBarcode qrBarcode = new PdfQRBarcode();
//Set text.
qrBarcode.Text = "012345678";
//Set barcode size.
qrBarcode.Size = new SizeF(200, 200);
//Set the QR barcode version.
qrBarcode.Version = QRCodeVersion.Version05;
//Set the dimention of the barcode.
qrBarcode.XDimension = 5;
//Set the barcode location.
qrBarcode.Location = new PointF(100, 100);
//Draw the barcode to PDF page.
qrBarcode.Draw(page);
//Save document to disk.
document.Save("output.pdf");
//Close the document.
document.Close(true);
'Create a new PDF document.
Dim document As New PdfDocument()
'Creates a new page and adds it as the last page of the document
Dim page As PdfPage = document.Pages.Add()
'Creates a new PDF QR barcode.
Dim qrBarcode As New PdfQRBarcode()
'Set text.
qrBarcode.Text = "012345678"
'Set barcode size.
qrBarcode.Size = New SizeF(200, 200)
'Set the QR barcode version.
qrBarcode.Version = QRCodeVersion.Version05
'Set the dimention of the barcode.
qrBarcode.XDimension = 5
'Set the barcode location.
qrBarcode.Location = New PointF(100, 100)
'Draw the barcode to PDF page.
qrBarcode.Draw(page)
'Save document to disk.
document.Save("output.pdf")
'Close the document.
document.Close(True)
Fields
Auto
Specifies the default version.
Declaration
public const QRCodeVersion Auto
Field Value
Type |
---|
QRCodeVersion |
Version01
Specifies version 1 (21x21 modules).
Declaration
public const QRCodeVersion Version01
Field Value
Type |
---|
QRCodeVersion |
Version02
Specifies version 2 (25x25 modules).
Declaration
public const QRCodeVersion Version02
Field Value
Type |
---|
QRCodeVersion |
Version03
Specifies version 3 (29x29 modules).
Declaration
public const QRCodeVersion Version03
Field Value
Type |
---|
QRCodeVersion |
Version04
Specifies version 4 (33x33 modules).
Declaration
public const QRCodeVersion Version04
Field Value
Type |
---|
QRCodeVersion |
Version05
Specifies version 5 (37x37 modules).
Declaration
public const QRCodeVersion Version05
Field Value
Type |
---|
QRCodeVersion |
Version06
Specifies version 6 (41x41 modules).
Declaration
public const QRCodeVersion Version06
Field Value
Type |
---|
QRCodeVersion |
Version07
Specifies version 7 (45x45 modules).
Declaration
public const QRCodeVersion Version07
Field Value
Type |
---|
QRCodeVersion |
Version08
Specifies version 8 (49x49 modules).
Declaration
public const QRCodeVersion Version08
Field Value
Type |
---|
QRCodeVersion |
Version09
Specifies version 9 (53x53 modules).
Declaration
public const QRCodeVersion Version09
Field Value
Type |
---|
QRCodeVersion |
Version10
Specifies version 10 (57x57 modules).
Declaration
public const QRCodeVersion Version10
Field Value
Type |
---|
QRCodeVersion |
Version11
Specifies version 11 (61x61 modules).
Declaration
public const QRCodeVersion Version11
Field Value
Type |
---|
QRCodeVersion |
Version12
Specifies version 12 (65x65 modules).
Declaration
public const QRCodeVersion Version12
Field Value
Type |
---|
QRCodeVersion |
Version13
Specifies version 13 (69x69 modules).
Declaration
public const QRCodeVersion Version13
Field Value
Type |
---|
QRCodeVersion |
Version14
Specifies version 14 (73x73 modules).
Declaration
public const QRCodeVersion Version14
Field Value
Type |
---|
QRCodeVersion |
Version15
Specifies version 15 (77x77 modules).
Declaration
public const QRCodeVersion Version15
Field Value
Type |
---|
QRCodeVersion |
Version16
Specifies version 16 (81x81 modules).
Declaration
public const QRCodeVersion Version16
Field Value
Type |
---|
QRCodeVersion |
Version17
Specifies version 17 (85x85 modules).
Declaration
public const QRCodeVersion Version17
Field Value
Type |
---|
QRCodeVersion |
Version18
Specifies version 18 (89x89 modules).
Declaration
public const QRCodeVersion Version18
Field Value
Type |
---|
QRCodeVersion |
Version19
Specifies version 19 (93x93 modules).
Declaration
public const QRCodeVersion Version19
Field Value
Type |
---|
QRCodeVersion |
Version20
Specifies version 20 (97x97 modules).
Declaration
public const QRCodeVersion Version20
Field Value
Type |
---|
QRCodeVersion |
Version21
Specifies version 21 (101x101 modules).
Declaration
public const QRCodeVersion Version21
Field Value
Type |
---|
QRCodeVersion |
Version22
Specifies version 22 (105x105 modules).
Declaration
public const QRCodeVersion Version22
Field Value
Type |
---|
QRCodeVersion |
Version23
Specifies version 23 (109x109 modules).
Declaration
public const QRCodeVersion Version23
Field Value
Type |
---|
QRCodeVersion |
Version24
Specifies version 24 (113x113 modules).
Declaration
public const QRCodeVersion Version24
Field Value
Type |
---|
QRCodeVersion |
Version25
Specifies version 25 (117x117 modules).
Declaration
public const QRCodeVersion Version25
Field Value
Type |
---|
QRCodeVersion |
Version26
Specifies version 26 (121x121 modules).
Declaration
public const QRCodeVersion Version26
Field Value
Type |
---|
QRCodeVersion |
Version27
Specifies version 27 (125x125 modules).
Declaration
public const QRCodeVersion Version27
Field Value
Type |
---|
QRCodeVersion |
Version28
Specifies version 28 (129x129 modules).
Declaration
public const QRCodeVersion Version28
Field Value
Type |
---|
QRCodeVersion |
Version29
Specifies version 29 (133x133 modules).
Declaration
public const QRCodeVersion Version29
Field Value
Type |
---|
QRCodeVersion |
Version30
Specifies version 30 (137x137 modules).
Declaration
public const QRCodeVersion Version30
Field Value
Type |
---|
QRCodeVersion |
Version31
Specifies version 31 (141x141 modules).
Declaration
public const QRCodeVersion Version31
Field Value
Type |
---|
QRCodeVersion |
Version32
Specifies version 32 (145x145 modules).
Declaration
public const QRCodeVersion Version32
Field Value
Type |
---|
QRCodeVersion |
Version33
Specifies version 33 (149x149 modules).
Declaration
public const QRCodeVersion Version33
Field Value
Type |
---|
QRCodeVersion |
Version34
Specifies version 34 (153x153 modules).
Declaration
public const QRCodeVersion Version34
Field Value
Type |
---|
QRCodeVersion |
Version35
Specifies version 35 (157x157 modules).
Declaration
public const QRCodeVersion Version35
Field Value
Type |
---|
QRCodeVersion |
Version36
Specifies version 36 (161x161 modules).
Declaration
public const QRCodeVersion Version36
Field Value
Type |
---|
QRCodeVersion |
Version37
Specifies version 37 (165x165 modules).
Declaration
public const QRCodeVersion Version37
Field Value
Type |
---|
QRCodeVersion |
Version38
Specifies version 38 (169x169 modules).
Declaration
public const QRCodeVersion Version38
Field Value
Type |
---|
QRCodeVersion |
Version39
Specifies version 39 (173x173 modules).
Declaration
public const QRCodeVersion Version39
Field Value
Type |
---|
QRCodeVersion |
Version40
Specifies version 40 (177x177 modules).
Declaration
public const QRCodeVersion Version40
Field Value
Type |
---|
QRCodeVersion |