Property: MaxRows

(TBarcode2D_Code16K)

Specifies the maximum number of stacked rows for a Code 16K barcode symbol.

Syntax:

type

{ Defined in the pCode16K unit }

TCode16K_Rows = 2..16;

property MaxRows: TCode16K_Rows;

Description:

The property specifies the maximum number of stacked rows for a Code 16K barcode symbol. It can be one of values from 2 to 16. They are defined in the pCode16K unit.

The smallest number of stacked rows that accommodates the barcode text will be automatically selected between the minimum number of stacked rows (specified by the MinRows property) and the maximum number of stacked rows (specified by this property).

If the barcode text is so long that it cannot be encoded using the maximum number of stacked rows specified by this property, 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 sizes" section in the "TBarcode2D_Code16K" article.

Contents