Class InputMode
Inheritance
System.Object
InputMode
Namespace: Syncfusion.Pdf.Barcode
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public sealed class InputMode : 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 input mode.
qrBarcode.InputMode = InputMode.BinaryMode;
//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 input mode.
qrBarcode.InputMode = InputMode.BinaryMode
'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
AlphaNumericMode
The Input may contain Numeric Values, Alphabets(Upper case only), SPACE, $, %, *, +, -, ., /, :
Declaration
public const InputMode AlphaNumericMode
Field Value
Type |
---|
InputMode |
BinaryMode
The Input may contain all the ASCII values
Declaration
public const InputMode BinaryMode
Field Value
Type |
---|
InputMode |
MixingMode
This mode is a combination of all modes
Declaration
public const InputMode MixingMode
Field Value
Type |
---|
InputMode |
NumericMode
The Input only contains the Numeric Values(0,1,2,3,4,5,6,7,8,9).
Declaration
public const InputMode NumericMode
Field Value
Type |
---|
InputMode |