Property: LeftMargin

Specifies the left margin of the barcode symbol in pixels.

Syntax:

property LeftMargin: Integer;

Description:

Specifies the margin between the leftmost side of the barcode symbol and the left side of the TImage, TQRImage, or TQRGzImage control that is specified by the Image property, in pixels.

If the quiet zones are represented (please read the ShowQuietZone property about whether or not the quiet zones will be represented), they are included in the barcode symbol. See diagram (the SpaceColor property value is set to clSilver in order to accentuate the quiet zones):

LeftMargin property

It is set using the following formula:

Note:

For the TBarcode2D_Code16Kbarcode components, the leading quiet zone and trailing quiet zoneare included always, even if the ShowQuietZone is set to false. See diagram (the SpaceColor property value is set to clSilver in order to accentuate the quiet zones):

LeftMargin property (Code 16K)

For the TBarcode2D_CCA, TBarcode2D_CCB, and TBarcode2D_CCC components, if the Linear property is set, the 2D symbol and the linear symbol are assembled to generate an EAN.UCC composite barcode symbol. The linear symbol is included in the composite barcode symbol, and the property specifies the left margin for entire rotated EAN.UCC composite barcode symbol not for the 2D symbol. See diagram (the SpaceColor property value is set to clSilver in order to accentuate the quiet zones):

EAN.UCC Composite symbol

When the linear component of the TBarcode2D_CCA, TBarcode2D_CCB, or TBarcode2D_CCC component is TBarcode1D_UPCA, TBarcode1D_UPCE, TBarcode1D_UPCE0, TBarcode1D_UPCE1, TBarcode1D_EAN8, TBarcode1D_EAN13, or TBarcode1D_EAN128, and its human readable text is represented. The human readable text and the vertical spacing between the text and linear symbol are included in the symbol. If the TextAlignmentproperty isn't set to taCustom, and the human readable text exceeds entire EAN.UCC composite barcode symbol in horizontal direction, the excess is included in the symbol. If the TextAlignment property is set to taCustom, the width of quiet zone marks and their horizontal spacing (LeftQuietZoneSpacing and RightQuietZoneSpacing) are included in the symbol too (if they are represented, this does not apply to TBarcode1D_EAN128). The property always specifies the left margin for entire rotated EAN.UCC composite symbol. See diagram (the SpaceColor property value is set to clSilver in order to accentuate the quiet zones):

LeftMargin property (CC-A, CC-B, CC-C; TextAlignment = taCustom; Text exceeds bounds)

Contents