Property: MaxVersion

(TBarcode2D_GridMatrix)

Specifies the maximum symbol version (symbol size) for a Grid Matrix barcode symbol.

Syntax:

type

{ Defined in the pGridMatrix unit }

TGridMatrix_Version = 1..13;

property MaxVersion: TGridMatrix_Version;

Description:

There are thirteen sizes of Grid Matrix symbol, referred to as version 1 to 13, in increasing order of size and data capacity. The property specifies the maximum symbol version (symbol size) for a Grid Matrix barcode symbol. It can be one of values from 1 to 13. They are defined in the pGridMatrix unit.

The smallest symbol version (symbol size) that accommodates the barcode text will be automatically selected between the minimum symbol version (symbol size) specified by the MinVersion property and the maximum symbol version (symbol size) specified by this property.

If the barcode text is so long that it cannot be encoded using the maximum symbol version (symbol size) 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 CurrentVersion property can be used to get the factual symbol version (symbol size).

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

See also the "Symbol sizes" section in the "TBarcode2D_GridMatrix" article.

Contents