Click or drag to resize

PdfCodabarBarcode Class

Represents a Codabar barcode.
Inheritance Hierarchy
System Object
Spire.Pdf.Barcode PdfBarcode
Spire.Pdf.Barcode PdfUnidimensionalBarcode
Spire.Pdf.Barcode PdfCodabarBarcode

Namespace: Spire.Pdf.Barcode
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public class PdfCodabarBarcode : PdfUnidimensionalBarcode

The PdfCodabarBarcode type exposes the following members.

Constructors
Name Description
Public method PdfCodabarBarcode
Initializes a new instance of theclass.
Public method PdfCodabarBarcode(String)
Initializes a new instance of theclass.
Top
Properties
Name Description
Public property BackColor
Gets or sets the back color of the barcode.
(Inherited from PdfBarcode .)
Public property BarcodeToTextGapHeight
Gets or sets the gap between the barcode and the displayed text.
(Inherited from PdfUnidimensionalBarcode .)
Public property BarColor
Gets or sets the bar color of the barcode.
(Inherited from PdfBarcode .)
Public property BarHeight
Gets or sets the bar height.
(Inherited from PdfBarcode .)
Public property Bounds
Gets or sets the rectangular area occupied by the barcode.
(Inherited from PdfBarcode .)
Public property EnableCheckDigit Obsolete.
Gets or sets a value indicating whether to enable to check digit calculation in the generated barcode or not.
(Inherited from PdfUnidimensionalBarcode .)
Public property EncodeStartStopSymbols
Gets or sets a value indicating whether [encode start stop symbols].
(Inherited from PdfUnidimensionalBarcode .)
Public property Font
Gets or sets the Text font.
(Inherited from PdfUnidimensionalBarcode .)
Public property Location
Gets or sets the location to render barcode in the PDF Document.
(Inherited from PdfBarcode .)
Public property NarrowBarWidth
Gets or sets the narrow bar width.
(Inherited from PdfBarcode .)
Public property QuietZone
Gets or sets the empty area which is to be allocated around the barcode.
(Inherited from PdfBarcode .)
Public property ShowCheckDigit Obsolete.
(Inherited from PdfUnidimensionalBarcode .)
Public property Size
Gets the size of the barcode.
(Inherited from PdfBarcode .)
Public property Text
Gets or Sets the barcode text.
(Inherited from PdfBarcode .)
Public property TextAlignment
Gets or sets the alignment of the text displayed on the barcode.
(Inherited from PdfUnidimensionalBarcode .)
Public property TextColor
Gets or sets the text color of the barcode text.
(Inherited from PdfBarcode .)
Public property TextDisplayLocation
Gets or sets the text display location.
(Inherited from PdfUnidimensionalBarcode .)
Top
Methods
Name Description
Protected method CalculateCheckDigit
Calculates the check digit based on the barcode specification.
(Inherited from PdfUnidimensionalBarcode .)
Public method Draw(PdfPageBase, PointF)
Draws the barcode on theat the specified location.
(Inherited from PdfUnidimensionalBarcode .)
Public method Draw(PdfPageBase, RectangleF)
Draws the barcode on theat the specified region.
(Inherited from PdfUnidimensionalBarcode .)
Protected method Draw(PdfPageBase, PointF, SizeF)
Draws the barcode on theat the specified location with the size.
(Inherited from PdfUnidimensionalBarcode .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Protected method GetCharWidth
Returns the Character width.
(Inherited from PdfUnidimensionalBarcode .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Protected method GetSize
Returns the size of the barcode.
(Inherited from PdfUnidimensionalBarcode .)
Protected method GetTextToEncode
Returns the Actual text to encode.
(Inherited from PdfUnidimensionalBarcode .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method PaintRectangle
Internal method used to paint bars on the page.
(Inherited from PdfUnidimensionalBarcode .)
Public method ToImage
Exports the barcode as image.

Return Value

Type:
The barcode image.
(Inherited from PdfUnidimensionalBarcode .)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Protected method Validate
Internal method used to validate the given barcode text.
(Inherited from PdfUnidimensionalBarcode .)
Top
Fields
Name Description
Protected field check
Automatically adds the check digit to the barcode when true.
(Inherited from PdfUnidimensionalBarcode .)
Protected field continuous
To check whether Barcode is ContinuousBarcode or discrete
(Inherited from PdfUnidimensionalBarcode .)
Protected field m_bounds
Indicates the region of the barcode.
(Inherited from PdfBarcode .)
Top
Remarks
This symbology allows the encoding of strings of up to 16 digits, 10 numeric digits (0 through 9) and 6 special non alpha characters ("+", "-", "$", "/", ":", ".").
See Also