Property: BarcodeHeight

Specifies the distance between the top and bottom of a barcode symbol in pixels.

Syntax:

property BarcodeHeight: Integer;

Description:

Specifies the distance between the top and bottom of a barcode symbol in pixels. If the human readable text is displayed, the height of the human readable text and its vertical spacing (TextVSpacing) are included. See diagram:

BarcodeHeight

For the TBarcode_ITF6 and TBarcode_ITF14 barcode components, the height of the top and bottom bearer bars (BearerWidth) are included too. See diagram:

BarcodeHeight (ITF6, ITF14)

If the human readable text is displayed, and it exceeds the barcode symbol in vertical direction, the excess isn't included. See diagram:

BarcodeHeight (Tall text)

If the property value is zero, when the Orientation property is set to "boLeftRight" or "boRightLeft", the TopMargin property value will be subtracted from the height of the TImage or TQRImage control that's specified by Image property, then the result will be used as the final barcode height, the barcode symbol will be reduced/stretched to fit this final height value. When the Orientation property is set to "boTopBottom" or "boBottomTop", the LeftMargin property value will be subtracted from the width of the TImage or TQRImage control that's specified by Image property, then the result will be used as the final barcode height, the barcode symbol will be reduced/stretched to fit this final height value.

If the property value is greater than zero, the barcode symbol will be reduced/stretched to fit this height value.

If the property value is less than zero, when the Orientation property is set to "boLeftRight" or "boRightLeft", the TopMargin property value and the absolute value of the negative height will be subtracted from the height of the TImage or TQRImage control that's specified by Image property, then the result will be used as the final barcode height, the barcode symbol will be reduced/stretched to fit this final height value. (It specifies the bottom margin of the barcode symbol, -1 denotes the bottom margin is 1, -2 denotes the bottom margin is 2, ...). When the Orientation property is set to "boTopBottom" or "boBottomTop", the LeftMargin property value and the absolute value of the negative height will be subtracted from the width of the TImage or TQRImage control that's specified by Image property, then the result will be used as the final barcode height, the barcode symbol will be reduced/stretched to fit this final height value. (It specifies the right margin of the barcode symbol, -1 denotes the right margin is 1, -2 denotes the right margin is 2, ...).

Contents