Property: MaxSize


Specifies the maximum symbol size for a MicroPDF417 barcode symbol.



{ Defined in the pMicroPDF417 unit }

TMicroPDF417_Size = (mpSize_1_11, mpSize_1_14, mpSize_1_17, mpSize_1_20, mpSize_1_24, mpSize_1_28, mpSize_2_8, mpSize_2_11, mpSize_2_14, mpSize_2_17, mpSize_2_20, mpSize_2_23, mpSize_2_26, mpSize_3_6, mpSize_3_8, mpSize_3_10, mpSize_3_12, mpSize_3_15, mpSize_3_20, mpSize_3_26, mpSize_3_32, mpSize_3_38, mpSize_3_44, mpSize_4_4, mpSize_4_6, mpSize_4_8, mpSize_4_10, mpSize_4_12, mpSize_4_15, mpSize_4_20, mpSize_4_26, mpSize_4_32, mpSize_4_38, mpSize_4_44);

property MaxSize: TMicroPDF417_Size;


The property specifies the maximum symbol size for a MicroPDF417 barcode symbol. It can be one of values from mpSize_1_11 to mpSize_4_44. These values denotation the number of columns and rows in every symbol size. For example, the symbol size value mpSize_4_10 denotations the MicroPDF417 symbol size is 10 stacked rows by 4 columns. These symbol size values are defined in the pMicroPDF417 unit.

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

If the barcode text is so long that it cannot be encoded using the maximum 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, the barcode text is specified in the Data property) event will occur.

The CurrentSize property can be used to get the factual symbol size.

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

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