Property: MaxVersion

(TBarcodeFmx2D_MicroQRCode)

Specifies the maximum symbol version (symbol size) for a Micro QR Code barcode symbol.

Syntax:

type

{ Defined in the pfmxMicroQRCode unit }

TMicroQRCode_Version = 1..4;

property MaxVersion: TMicroQRCode_Version;

Description:

The property specifies the maximum symbol version (symbol size) for a Micro QR Code barcode symbol. It can be one of values from 1 to 4, they are defined in the pfmxMicroQRCode 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 (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 "TBarcodeFmx2D_MicroQRCode" article.

Contents