MicroQRCodeOptions Class

Options for the creation of Micro QR codes by QRCode.CreateMicroQR.

public sealed class MicroQRCodeOptions

Remarks

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

NameDescription
MicroQRCodeOptions()

MicroQRCodeOptions()

MicroQRCodeOptions.cs
public MicroQRCodeOptions()

No documentation is available.

Properties

NameDescription
MaximumVersionGets 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.
MinimumVersionGets 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.cs

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.

public int MaximumVersion { get; set; }

Property value

int

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.cs

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.

public int MinimumVersion { get; set; }

Property value

int

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.