BarcodeParameters

BarcodeParameters class

Barcode generation parameters.

The BarcodeParameters type exposes the following members:

Properties

NameDescription
x_dimensionx-dimension is the smallest width of the unit of BarCode bars or spaces.
Increase this will increase the whole barcode image width.
Ignored if auto_size_mode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
bar_heightHeight of 1D barcodes’ bars in Unit value.
Ignored if auto_size_mode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
paddingBarcode paddings.
Default value: 5pt 5pt 5pt 5pt.
checksum_always_showAlways display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
is_checksum_enabled
enable_escapeIndicates whether explains the character “" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only
If the EnableEscape is true, “" will be explained as a special escape character. Otherwise, “" acts as normal characters.
throw_exception_when_code_text_incorrectOnly for 1D barcodes.
If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode’s specification.
Exception always will be thrown for: Databar symbology if codetext is incorrect.
Exception always will not be thrown for: AustraliaPost, SingapurePost, Code39FullASCII, Code93, Code16K, Code128 symbology if codetext is incorrect.
wide_narrow_ratioWide bars to Narrow bars ratio.
Default value: 3, that is, wide bars are 3 times as wide as narrow bars.
Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39, Code39FullASCII
code_text_parametersCodetext parameters.
filled_barsGets or sets a value indicating whether bars filled.
Only for 1D barcodes.
Default value: true.
bar_width_reductionGet or sets bars reduction value that is used to compensate ink spread while printing.
Default value: 0
postalPostal parameters. Used for Postnet, Planet.
patch_codePatchCode parameters.
australian_postAustralianPost barcode parameters.
data_barDatabar parameters.
gs1_composite_barGS1 Composite Bar parameters.
codablockCodablock parameters.
data_matrixDataMatrix parameters.
code_16kCode16K parameters.
dot_codeDotCode parameters.
itfITF parameters.
pdf417PDF417 parameters.
qrQR, MicroQR and RectMicroQR parameters.
supplementSupplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN.
maxi_codeMaxiCode parameters.
aztecAztec parameters.
code128Code128 parameters.
codabarCodabar parameters.
couponCoupon parameters. Used for UpcaGs1DatabarCoupon, UpcaGs1Code128Coupon.
han_xinHanXin parameters.

See Also