Configuration for Interleaved2of5 codes. More...
Inherits ConfigBase< T >.
Public Member Functions | |
Interleaved2of5 | SetMinimumLength (int length) |
Sets value for MinimumLength. | |
Interleaved2of5 | SetMaximumLength (int length) |
Sets value for MaximumLength. | |
Interleaved2of5 | SetChecksumEnabled (Checksum value) |
Configures checksum for decoding. | |
Interleaved2of5 | SetRejectPartialEnabled (bool enable) |
Sets the reject partial enable flag. | |
![]() | |
T | SetEnabled (bool enabled) |
Sets value for IsEnabled. | |
Properties | |
int | MinimumLength [get, set] |
Minimum data length. | |
int | MaximumLength [get, set] |
Maximum data length. | |
Checksum | IsChecksumEnabled [get, set] |
Gets or sets configuration of checksum for decoding. | |
bool | IsRejectPartialEnabled [get, set] |
Gets or sets a value indicating whether partial codes should be rejected. | |
![]() | |
virtual bool | IsEnabled [get, set] |
The enabled state of this symbology. | |
Decoder | Decoder [get] |
Decoder this config belongs to. | |
Configuration for Interleaved2of5 codes.
For additional details on configuration including a code example, refer to the GetConfig<T>()
method in the Decoder class.
Interleaved2of5 SetChecksumEnabled | ( | Checksum | value | ) |
Configures checksum for decoding.
value | Value for checksum configuration. |
Interleaved2of5 SetMaximumLength | ( | int | length | ) |
Sets value for MaximumLength.
The default value is 0 for no checking.
length | Number of characters of the longest decoded string (between 0 and 120). |
Interleaved2of5 SetMinimumLength | ( | int | length | ) |
Sets value for MinimumLength.
length | Number of characters of the shortest decoded string. |
Interleaved2of5 SetRejectPartialEnabled | ( | bool | enable | ) |
Sets the reject partial enable flag.
Enables or disables the rejection of partial Interleaved 2 of 5 barcodes. When this feature is enabled, the decoder becomes less likely to mistakenly decode a damaged or truncated code, such as when part of the code is missing due to its position in the image.
enable | if set to true partial codes are rejected. |
|
getset |
Gets or sets a value indicating whether partial codes should be rejected.
true
if rejection of partial codes is enabled; otherwise, false
.