Property: MaxRows

(TBarcode2D_PDF417)

Specifies the maximum number of stacked rows for a PDF417 barcode symbol.

Syntax:

type

{ Defined in the pPDF417Custom unit }

TPDF417_Rows = 3 .. 90;

property MaxRows: TPDF417_Rows;

Description:

The property specifies the maximum number of stacked rows for a PDF417 barcode symbol. It can be one of values from 3 to 90. They are defined in the pPDF417Custom unit.

The maximum number of stacked rows together with the maximum number of columns (specified by the MaxColumns property) indicates the maximum symbol size for a PDF417 barcode symbol. And the minimum number of stacked rows (specified by the MinRows property) together with the minimum number of columns (specified by the MinColumns property) indicates the minimum symbol size for the PDF417 barcode symbol. Based on the stretch order (specified by the StretchOrder property), the smallest symbol size that accommodates the barcode text will be automatically selected between the minimum symbol size and the maximum symbol size.

If the barcode text is so long that it cannot be encoded using the maximum symbol size, an OnInvalidLength (the barcode text is specified in the Barcode property) or an OnInvalidDataLength (only for Delphi/C++ Builder 2009 or later, and the barcode text is specified in the Data property) event will occur.

The CurrentRows property can be used to get the factual number of stacked rows.

Note, if the property is set to a value less than the MinRows property's value, the MinRows property will be automatically changed to equal to this property's value. In other words, the MaxRows property's value is always greater than or equal to the MinRows property's value.

See also the "Symbol size" section in the "TBarcode2D_PDF417" article.

Contents