Click or drag to resize

PdfCode128CBarcode Class

Represents a Code128C barcode.
Inheritance Hierarchy
System Object
Spire.Pdf.Barcode PdfBarcode
Spire.Pdf.Barcode PdfUnidimensionalBarcode
Spire.Pdf.Barcode PdfCode128CBarcode

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

The PdfCode128CBarcode type exposes the following members.

Constructors
Name Description
Public method PdfCode128CBarcode
Initializes a new instance of theclass.
Public method PdfCode128CBarcode(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 (Overrides PdfUnidimensionalBarcode CalculateCheckDigit .)
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 .)
Protected method GetDataToEncode
Gets the data to encode.
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 (Overrides PdfUnidimensionalBarcode GetTextToEncode .)
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 (Overrides PdfUnidimensionalBarcode Validate(String) .)
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
Only the following symbols are allowed in a Code 128C barcode: 0 1 2 3 4 5 6 7 8 9 FNC1 (\xF0). Code 128 C encodes only numeric symbols at double density, each pair of digits is encoded using a single symbol.
See Also