MicroQRCodeOptions Class
Options for the creation of Micro QR codes by QRCode.CreateMicroQR.
public sealed class MicroQRCodeOptionsRemarks
The version sets the number of modules of the symbol (9 + 2 × version per side), not the size of the image: the ModuleSize of the renderers sets how many pixels or units a module takes.
Constructors
| Name | Description |
|---|---|
| MicroQRCodeOptions() |
MicroQRCodeOptions()
MicroQRCodeOptions.cspublic MicroQRCodeOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| MaximumVersion | Gets or sets the largest version the symbol can have, from 1 (M1, 11 × 11 modules) to 4 (M4, 17 × 17 modules). The default is 4. |
| MinimumVersion | Gets or sets the smallest version the symbol can have, from 1 (M1, 11 × 11 modules) to 4 (M4, 17 × 17 modules). The default is 1. |
MaximumVersion
MicroQRCodeOptions.csGets or sets the largest version the symbol can have, from 1 (M1, 11 × 11 modules) to 4 (M4, 17 × 17 modules). The default is 4.
public int MaximumVersion { get; set; }Property value
Exceptions
ArgumentOutOfRangeException- The value is less than 1 or greater than 4.
Remarks
Data that does not fit in this version throws an InvalidOperationException, instead of giving a larger symbol.
MinimumVersion
MicroQRCodeOptions.csGets or sets the smallest version the symbol can have, from 1 (M1, 11 × 11 modules) to 4 (M4, 17 × 17 modules). The default is 1.
public int MinimumVersion { get; set; }Property value
Exceptions
ArgumentOutOfRangeException- The value is less than 1 or greater than 4.
Remarks
The symbol has the smallest version from MicroQRCodeOptions.MinimumVersion to MicroQRCodeOptions.MaximumVersion that supports the error correction level and the characters, and holds the data. Set both to the same value to get a symbol of that exact version.