Skip to main content

Common barcode properties

The following properties are shared by all linear and stacked barcode types that inherit from BarcodeBase: Code128, GS1-128, GS1-128-Plain, Code128-ZPL, Code39, EAN-13, EAN-8, UPC-A, ITF, and ITF-14.

These types also inherit all common label object properties.

Mandatory properties

PropertyTypeDescription
barHeightnumberBar height.

Optional properties

PropertyTypeDescription
barWidthnumberWidth of the narrowest bar element. Default is 1.
quietZonebooleanEnable or disable the quiet zone. Default is true.
extraQuietZonenumberExtra quiet zone width added on all sides, in addition to the standard quiet zone.
debleednumberInk spread compensation. Reduces each bar width by this amount to counteract ink bleeding.
barColorstringColor of the bars. May contain dynamic text. Default is black.
textColorstringColor of the human-readable text below the barcode. Defaults to the value of barColor.
fontFontFont for the human-readable text below the barcode.