UniPRT SDK  v1.0.0.0
AQRBarcode Class Referenceabstract

Base class for QR Code 2D barcode. More...

Inheritance diagram for AQRBarcode:
ABarcode2D ISquareCell IBarcode2D IBarcodeItem_2D IPositionRuler IRotation QRBarcode QRBarcode

Public Member Functions

ICellSquare GetCellSize ()
 Barcode cell size. Larger cell size results in barcodes that take up a larger area.
 
String GetData ()
 The barcode content.
 
List< Tuple< QRCodeManualEncodingEnum, String > > GetDataManuallyEncoded ()
 Manually encoded data. Manually encoded has priority over automatic encoding, Data. More...
 
QRCodeErrorCorrectionEnum GetErrorCorrection ()
 
QRCodeMaskEnum GetMask ()
 
QRCodeModelEnum GetModel ()
 
RotateEnum GetRotation ()
 
IRuler GetRuler ()
 The print resolution can be set in either inch or MM scale. Setting/Updating either scale results in updates to both. More...
 
IPoint GetStart ()
 Position where barcode starts.
 
void SetCellSize (ICellSquare cellSize)
 
void SetData (String data)
 
void SetDataManuallyEncoded (List< Tuple< QRCodeManualEncodingEnum, String >> dataManuallyEncoded)
 
void SetErrorCorrection (QRCodeErrorCorrectionEnum errorCorrection)
 
void SetMask (QRCodeMaskEnum mask)
 
void SetModel (QRCodeModelEnum model)
 
void SetRotation (RotateEnum rotation)
 
void SetRuler (IRuler ruler)
 
void SetStart (IPoint start)
 
abstract String ToString ()
 Returns the string that can be sent to printer.
 
abstract String toString ()
 

Protected Member Functions

 AQRBarcode (IPoint start, List< Tuple< QRCodeManualEncodingEnum, String >> dataManuallyEncoded)
 This is used for cases where manual encoding of barcode data is desired.
 
 AQRBarcode (IPoint start, String data)
 Used for most cases where data will be encoded automatically into barcode.
 

Detailed Description

Base class for QR Code 2D barcode.

Data encoded in a QR barcode can be encoded automatically or manually. Unless there is a need to optimize the amount of data stored in the barcode, automatic encoding should be used.
Data
DataManuallyEncoded

Member Function Documentation

◆ GetDataManuallyEncoded()

List<Tuple<QRCodeManualEncodingEnum, String> > GetDataManuallyEncoded ( )

Manually encoded data. Manually encoded has priority over automatic encoding, Data.

Data can be encoded automatically or manually. If there is automatically encoded data, it is ignored and this manually encoded data will be used. For manually encoding data, a list of pairs of strings and their related encoding method can be provided using this property.

◆ GetRuler()

IRuler GetRuler ( )
inherited

The print resolution can be set in either inch or MM scale. Setting/Updating either scale results in updates to both.

The print resolution must match the resolution of the printer. Incorrect printing will result if a resolution does not match the printer.

Implements IPositionRuler.