Base configuration class for UPC-A, UPC-E, EAN-8, and EAN-13 barcodes. More...
Inherits CompositeCodeBase< T >.
Inherited by Ean13, Ean8, UpcA, and UpcE.
Public Member Functions | |
| T | SetSupplemental (SupplementalCode supplement, bool required=false, bool addSpace=true) |
| Configures supplemental code decoding. | |
| SupplementalCode | GetSupplemental () |
| Retrieves the current configuration of the supplemental code decoding. | |
| T | SetStripCheckDigitEnabled (bool enabled) |
| Sets the strip check digit enable. | |
Public Member Functions inherited from CompositeCodeBase< T > | |
| CompositeCodeBase< T > | SetCCAEnabled (bool enable) |
| Sets value for IsCCAEnabled. | |
| CompositeCodeBase< T > | SetCCBEnabled (bool enable) |
| Sets value for IsCCBEnabled. | |
| CompositeCodeBase< T > | SetCCCEnabled (bool enable) |
| Sets value for IsCCCEnabled. | |
Public Member Functions inherited from ConfigBase< T > | |
| T | SetEnabled (bool enabled) |
| Sets value for IsEnabled. | |
Properties | |
| bool | IsStripCheckDigitEnabled [get, set] |
| Gets or sets a value indicating whether the strip check digit is enabled. | |
| bool | IsAddSpaceEnabled [get, set] |
| Gets or sets a value indicating whether add space is enabled. | |
| bool | IsSupplementalRequiredEnabled [get, set] |
| Gets or sets a value indicating whether a supplemental code is required. | |
| SupplementalCode | SupplementalCode [get, set] |
| Gets or sets the supplemental code. | |
Properties inherited from CompositeCodeBase< T > | |
| virtual bool | IsCCAEnabled [get, set] |
| Enable/disable CCA. | |
| virtual bool | IsCCBEnabled [get, set] |
| Enable/disable CCB. | |
| virtual bool | IsCCCEnabled [get, set] |
| Enable/disable CCC. | |
Properties inherited from ConfigBase | |
| virtual bool | IsEnabled [get, set] |
| The enabled state of this symbology. | |
| Decoder | Decoder [get] |
| Decoder this config belongs to. | |
Base configuration class for UPC-A, UPC-E, EAN-8, and EAN-13 barcodes.
UPC-A, UPC-E, EAN-8, and EAN-13 barcodes can serve as the 1D component of a composite code, too. A composite code combines a 1D barcode (such as UPC or EAN) with a 2D code, often to include additional information. To enable composite code decoding use function SetCCAEnabled, SetCCBEnabled and SetCCCEnabled.
For specific configurations, refer to the following derived classes:
| T | The specific configuration class for the UPC ore EAN barcode type. |
| T | : | CompositeCodeBase<T> |
| SupplementalCode GetSupplemental | ( | ) |
Retrieves the current configuration of the supplemental code decoding.
| T SetStripCheckDigitEnabled | ( | bool | enabled | ) |
Sets the strip check digit enable.
| enabled | if set to true [enabled]. |
| T SetSupplemental | ( | SupplementalCode | supplement, |
| bool | required = false, | ||
| bool | addSpace = true ) |
Configures supplemental code decoding.
| supplement | Specifies the type of supplemental code to decode. |
| required | If set to true, the code will not be decoded unless both the code and the
|
| addSpace | Enables or disables adding a space character between the code and the supplemental code. |
|
getset |
Gets or sets a value indicating whether add space is enabled.
true if add space is enabled; otherwise, false.
|
getset |
Gets or sets a value indicating whether the strip check digit is enabled.
true if strip check digit is enabled; otherwise, false.
|
getset |
Gets or sets a value indicating whether a supplemental code is required.
true if a supplemental code is required; otherwise, false.
|
getset |
Gets or sets the supplemental code.
The supplemental code.
| System.ArgumentOutOfRangeException | value - null |