The most important properties are outlined below, and followed by sections in which the properties are defined in detail.
The properties that can be set to generate an image
M_barcode.AutoParity specifies whether any check digits are calculated automatically
M_barcode.BackColor the colour behind the bars
M_barcode.BarRatio specifies the ratio of wide/narrow bar (times ten) for some barcode types
M_barcode.BarReduce specifies the percentage reduction in bar thickness (useful for allowing for ink spread in wet-ink printing processes.
M_barcode.BearerBarThickness specifies the thickness of bearer bars for those barcodes that may have bearer bars
M_barcode.BorderSize specifies the thickness of any border around the image (in points)
M_barcode.Caption specifies the characters that make up the code
M_barcode.CharSpacing the percentage of the barcode width over which the text under the barcode should be spread out.
M_barcode.CodeType specifies the barcode type required
M_barcode.ExtendBearers Allows bearer bars to extend into light margins.
M_barcode.ForeColor the colour of the bars and any text under the bars
M_barcode.FontSize, FontName, FontBold, FontItalic are alternative ways of specifying font characteristics
M_barcode.ImageHeight required target height of barcode image (in units determined by the setting of ScaleMode)
M_barcode.ImageWidth required target width of barcode image (in units determined by the setting of ScaleMode)
M_barcode.JustifyText specifies the text justification for human readable text under the barcode
M_barcode.MarginSize specifies the size of the light margins
M_barcode.NominalSize specifies a percentage of the barcode's standard size at which the image should be created. If specified the calculated value overrides the ImageHeight and ImageWidth parameters.
M_barcode.Orientation specifies the orientation of the barcode image
M_barcode.PictureHeight the height of barcode picture generated (in Pixels)
M_barcode.PictureWidth the width of barcode picture generated (in Pixel)
M_barcode.ScaleMode specifies the units of ImageHeight and ImageWidth and PictureHeight and PictureWidth parameters (default is 0 = HIMETRIC = 0.01 mm)
M_barcode.ShowBearerBars determines whether (or how many) bearer bars are displayed
M_barcode.ShowText specifies that the text content of the barcode should be displayed under the bars
Axbarcode.ShowCheckDigit specifies whether any automatic check digit is displayed (for those barcode type which permit this)
M_barcode.ShowLightMargin specifies whether light margin indicators should be displayed for those barcode types that support these
M_barcode.xunit specifies the thickness of each barcode element in mils
Many of these properties have default values (see the reference section), so do not require changing if you can make do with the default values. The properties that must be set for you to obtain a barcode are
M_barcode.CodeType specifies the barcode type required
M_barcode.Caption specifies the characters that make up the code
A typical example of setting these properties is:
M_barcode.CodeType=8 rem code type is 8 for Code-39 type barcode
M_barcode.Caption="123456" rem code is 123456
More: