Class UpcA
A UPC-A bar code (GTIN-12) with its digits under the bars.
public class UpcA : BarCode
- Inheritance
-
objectUpcA
- Inherited Members
Remarks
The code is 11 digits, to which the check digit is added, or 12 digits with a check digit that must be right.
Size spans the bars and their quiet zones (9 modules on each side), so the first and last digit, printed beside the bars, stay inside it: 113 modules in all. Set TextLocation to None to leave the digits out.
Constructors
- UpcA(string)
Initializes a new UPC-A bar code. Set Size before drawing it.
- UpcA(string, XSize)
Initializes a new UPC-A bar code with its size, quiet zones included.
Properties
- FullCode
The 12 digits of the code, with the check digit.
Methods
- CheckCode(string)
Checks for 11 digits, or 12 with the right check digit.
- GetModules()
The 95 modules from start guard to end guard, true for bar.
- Render(XGraphics, XBrush, XFont?, XPoint)
Renders the bar code.