Click or drag to resize

PdfUnidimensionalBarcode Class

Represents the Base class for all the Single dimensional barcodes
Inheritance Hierarchy
System Object
Spire.Pdf.Barcode PdfBarcode
Spire.Pdf.Barcode PdfUnidimensionalBarcode
More...

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

The PdfUnidimensionalBarcode type exposes the following members.

Constructors
Name Description
Public method PdfUnidimensionalBarcode
Initializes the new instance of
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.
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.
Public property EncodeStartStopSymbols
Gets or sets a value indicating whether [encode start stop symbols].
Public property Font
Gets or sets the Text font.
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.
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.
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.
Top
Methods
Name Description
Protected method CalculateCheckDigit
Calculates the check digit based on the barcode specification.
Public method Draw(PdfPageBase, PointF)
Draws the barcode on theat the specified location.
Public method Draw(PdfPageBase, RectangleF)
Draws the barcode on theat the specified region.
Protected method Draw(PdfPageBase, PointF, SizeF)
Draws the barcode on theat the specified location with the size.
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.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Protected method GetSize
Returns the size of the barcode.
(Overrides PdfBarcode GetSize .)
Protected method GetTextToEncode
Returns the Actual text to encode.
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.
Public method ToImage
Exports the barcode as image.

Return Value

Type:
The barcode image.
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.
(Overrides PdfBarcode Validate(String) .)
Top
Fields
Name Description
Protected field check
Automatically adds the check digit to the barcode when true.
Protected field continuous
To check whether Barcode is ContinuousBarcode or discrete
Protected field m_bounds
Indicates the region of the barcode.
(Inherited from PdfBarcode .)
Top
See Also
Inheritance Hierarchy