Barcode

TECIT.TBarCode.Barcode

Base types: IDisposable

A class to draw linear and 2d barcodes.

Constructors

NameDescription
BarcodeInitializes a new instance of the Barcode class.

Events

NameDescription
DrawBarOccurs when a bar is drawn in DrawCustom.
DrawColoredBarOccurs when a colored bar is drawn in DrawCustom.
DrawHexagonOccurs when a MaxiCode Hexagon is drawn in DrawCustom.
DrawRingOccurs when a MaxiCode Ring is drawn in DrawCustom.
DrawRowOccurs when a row of bars is drawn in DrawCustom.
DrawTextOccurs when the human readable text is drawn in DrawCustom.

Methods

NameDescription
CalculateBarcodeHeightCalculates the height of the barcode.
CalculateBarcodeSizeCalculates the size of the barcode.
CalculateBarcodeWidthCalculates the width of the barcode.
CalculateCheckdigitsCalculates the checkdigits.
CalculateModuleWidthCalculates the width of a module.
CalculateNumberOfModulesCalculates the number of modules.
CalculateNumberOfRowsCalculates the number of rows for 2d barcodes.
CalculateOptimalBitmapSizeCalculates the optimal size of a bitmap.
CalculateTextAreaHeightCalculates the height of the text area.
CalculateXColumnsOf2DBarcodeCalculates the width of the barcode in modules.
CalculateXRowsOf2DBarcodeCalculates the height of the barcode in modules.
CopyToClipboardCopies barcode to clipboard.
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
DrawDraws the barcode into graphics context.
DrawBitmapDraws the barcode into a bitmap.
DrawCustomCalls the callback functions (events DrawRow, DrawBar, DrawText) for custom drawing.
DrawMetafileDraws the barcode into a meta file.
EstimateQualityEstimates the quality of a module.
GetBackgroundColorGets the color of the background.
GetBarcodeColorGets the color of the barcode.
GetBarcodeNameByTypeGets display name for given barcode type.
GetCDListByTypeReturns the implemented check-digit methods valid for given barcode symbology.
GetCheckdigitMethodNameGets the name of the check digit method.
GetDefaultDataByTypeGets default data for given barcode type.
GetFontColorGets the color of the font (CMYK).
GetMaxDataLengthGets the maximum length of the barcode data.
GetNumberOfBarWidthsReturns number of different bar-widths used by the symbology.
GetNumberOfSpaceWidthsReturns number of different space-widths used by the symbology.
GetRatioHintReturns the format hint for the print-ratio.
GetRatioStringReturns the default print-ratio string of the barcode.
InitializeGs1Initializes the GS1 library from the ConfigurationDirectory.
IsDataValidDetermines whether the barcode data is valid for the chosen barcode type.
LicenseLicenses TBarCode.NET.
SetBackgroundColorSets the color of the background.
SetBarcodeColorSets the color of the barcode.
SetFontColorSets the color of the font (CMYK).
ShouldSerializeBackgroundColorReturns true if a designer such as Visual Studio should serialize the property BackgroundColor.
ShouldSerializeBarcodeColorReturns true if a designer such as Visual Studio should serialize the property BarcodeColor.
ShouldSerializeBoundingRectangleReturns true if a designer such as Visual Studio should serialize the property BoundingRectangle.
ShouldSerializeBoundingRectangleFReturns true if a designer such as Visual Studio should serialize the property BoundingRectangleF.
ShouldSerializeByteDataReturns true if a designer such as Visual Studio should serialize the property ByteData.
ShouldSerializeFontColorReturns true if a designer such as Visual Studio should serialize the property FontColor.
ShouldSerializeIgnoreDpiFromDCReturns true if a designer such as Visual Studio should serialize the property IgnoreDpiFromDC.

Properties

NameDescription
ActiveTextIndexGets or sets the currently active text index.
AdjustModuleWidthToPixelRasterGets or sets a value indicating whether the module width should be optimized to the pixel raster.
AztecGets the settings for Aztec Code barcodes.
BackgroundColorGets or sets the color of the background (if not transparent).
BarcodeColorGets or sets the color of the barcode.
BarcodeTypeGets or sets the type of the barcode.
BarShapeGets or sets the barcode's bar shape.
BarShapeDefaultGets the default bar shape for current barcode type.
BarShapeImageFileGets or sets the image file used for drawing 'Image' shapes.
BarWidthReductionGets or sets the bar width reduction.
BarWidthReductionUnitGets or sets the bar width reduction unit.
BearerBarTypeGets or sets the bearer bar type.
BearerBarWidthGets or sets the bearer bar width in [mm].
BoundingRectangleGets or sets the bounding rectangle (integer version).
BoundingRectangleFGets or sets the bounding rectangle (float version).
ByteDataGets or sets the barcode data as byte array.
CharacterSpacingGets or sets the character spacing distance between characters in the human readable text.
CheckdigitMethodGets or sets the check digit method.
CodablockFGets the settings for CODABLOCK F barcodes.
Code2Of5Gets the settings for Code 2 of 5 barcodes.
CodepageGets or sets the code page used for encoding the bar code data (if set by the property Barcode.Data).
CodepageCustomGets or sets a code page which does not belong to the predefined ones Barcode.Data.
ColorModeGets or sets the color mode.
CompositeSymbolGets the settings for composite symbols.
CompressionGets or sets the compression mode for barcode data.
ConfigurationDirectoryGets the configuration directory (e.g.
DataGets or sets the barcode data.
DataMatrixGets the settings for Data Matrix barcodes.
DecoderGets or sets the type of decoder for which the barcode should be optimized.
DotCodeGets the settings for DotCode barcodes.
DpiGets or sets the resolution in dpi.
EncodingModeGets or sets the encoding mode of the input data (Data, ByteData).
FontSets the font of the currently active text object (usually the human readable text).
FontColorGets or sets the font color of the HRT (font object).
FontHeightGets the font size [points] of the currently active text object (usually the human readable text).
FontNameSets the font of the currently active text object (usually the human readable text).
FormatGets or sets the format string.
GdiDrawingModeGets or sets the GDI drawing mode.
HandleGet the handle to the internal bar code structure.
HanXinGets the settings for Han Xin barcodes.
HumanReadableTextGets or sets the content of the currently active text object (usually the human readable text).
IgnoreDpiFromDCGets or sets a value indicating whether to ignore the resolution of the device context.
IncludeMacrosInPostscriptGets or sets a value indicating whether Postscript macros should be included in Postscript output.
IsBackgroundTransparentGets or sets a value indicating whether the background is transparent or filled with the background color.
IsMirroredGets or sets a value indicating whether this barcode is drawn mirrored.
IsPositionRelativeGets or sets a value indicating whether the barcode position is relative.
IsTextAboveDetermines if human-readable text is printed below or above the barcode.
IsTextVisibleDetermines if the currently active text object (usually the human readable text) is visible.
LibraryDateGets the TBarCode DLL / Library build date.
LibraryVersionGets the TBarCode DLL / Library version.
LicenseCountGets or sets the number of licenses.
LicensedProductGets or sets the licensed product.
LicenseeGets or sets the name of the licensee.
LicenseKeyGets or sets the license key.
LicenseTypeGets or sets the license type.
MaxiCodeGets the settings for MaxiCode barcodes.
MaximumTextIndexGets the maximum index of available text objects.
MicroQRCodeGets the settings for Micro QR Code barcodes.
ModuleWidthGets or sets the width of a module or dot in [mm].
MustFitGets or sets a value indicating whether the barcode must fit into the bounding rectangle.
NormalizeDCGets or sets a value indicating whether the drawing context (DC) should be normalized internally.
NotchHeightGets or sets the notch height (the protrusion of the synchronization bars - applies to EAN-13, UPC-A and variants).
NumberOfBarcodeTypesGets the number of barcode types.
NumberOfCheckdigitMethodsGets the number of supported check digit methods.
OptionsGets or sets the barcode option string.
PclModeGets or sets the PCL mode.
Pdf417Gets the settings for PDF417, Macro PDF417 and MicroPDF417 barcodes.
PostscriptMacrosGets the postscript macros.
QRCodeGets the settings for QR Code barcodes.
QuietZonesGets the quiet zone settings.
RatioGets or sets the ratio of bar and gap widths in the barcode.
RotationGets or sets the rotation.
RssGets the settings for GS1 DataBar/Rss barcodes.
SizeModeGets or sets the size mode.
TextAlignmentGets or sets the alignment of the currently active text object (usually the human readable text).
TextBlockHeightGets or sets the height of the currently active 's text bounding rectangle.
TextBlockWidthGets or sets the width of the currently active 's text bounding rectangle.
TextClippingDetermines if the currently active text object is clipped.
TextDistanceGets or sets the distance between the human readable text and the barcode in [mm].
TextPositionGets or sets the position of the currently active text object.
TextPositionLeftGets or sets the left edge of the currently active 's text bounding rectangle.
TextPositionTopGets or sets the top edge of the currently active 's text bounding rectangle.
TextRotationGets or sets the the rotation of the currently active text object.
TranslateEscapeSequencesGets or sets a value indicating whether escapes sequences are translated in the bar code data.
TrimWhiteSpacesDetermine whether and how to trim whitespaces from the barcode data.
UseDeviceFontsGets or sets a value indicating whether device fonts should be used for Postscript output.
VersionGets the TBarCode.NET product version.
WordWrapping[NOT IMPLEMENTED YET!] Determines if word wrapping is enabled for the currently active text object (usually the human readable text).

Search documentation

Search in
More scopes
Additional scopes

All contents