(TBarcode2D_HanXinCode)
Specifies the maximum symbol version (symbol size) for a Han Xin Code barcode symbol.
type
{ Defined in the pHanXinCode unit }
THanXinCode_Version = 1..84;
property MaxVersion: THanXinCode_Version;
There are eighty-four sizes of Han Xin Code symbols, referred to as version 1 to 84, in increasing order of size and data capacity. The property specifies the maximum symbol version (symbol size) for a Han Xin Code barcode symbol. It can be one of values from 1 to 84. They are defined in the pHanXinCode 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_HanXinCode" article.