Code128
Represents a Code128 barcode.
public class Code128 : TextBarcode
Public Class Code128
Inherits TextBarcode
Inheritance: ObjectBarcodeLinearBarcodeTextBarcodeCode128
Licensing Info
This class is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Examples
The following example will Draw a Code128 barcode image.Imports System
Imports ceTe.DynamicBarcode.Creator
Module MyModule
Sub Main()
'Create a barcode object.
Dim barcode As Code128 = New Code128("Hello World", 100)
'Draw barcode image.
barcode.Draw("C:\barcode.png", 300, ImageFormat.Png)
End Sub
End Module
using System;
using ceTe.DynamicBarcode.Creator;
class MyClass
{
static void Main()
{
// Create a barcode object.
Code128 barcode = new Code128("Hello World", 100);
// Draw barcode image.
barcode.Draw(@"C:\barcode.png", 300, ImageFormat.Png);
}
}
Remarks
This class can be used to draw a Code128 barcode image.
Constructors
Code128(String, Single) | Initializes a new instance of the Code128 class. |
Properties
BackColor | Gets or sets the background color of the barcode. (Inherited from Barcode) |
BarcodeMargin | Gets or Sets the margins of the barcode. (Inherited from Barcode) |
BarColor | Gets or sets the bar color of the barcode. (Inherited from Barcode) |
ContinueToNextSymbol | Gets or sets if the barcode will be continued to another Code 128 barcode. |
FontSize | Font size in points. (Inherited from TextBarcode) |
LookAhead | Gets or sets the number of characters to look ahead when determining the best mode. |
ProcessTilde | Gets or Sets a boolean indicating whether to process the tilde character. |
ShowText | Gets or sets a value indicating if the value should be placed as text below the barcode. (Inherited from TextBarcode) |
SymbolHeight | Gets or sets symbol height of barcode. (Inherited from LinearBarcode) |
TextAlign | Gets or sets the alignment to use when displaying the text. (Inherited from TextBarcode) |
TextColor | Gets or set the color of the text. (Inherited from TextBarcode) |
UccEan128 | Gets or sets if the barcode is a UCC / EAN Code 128 barcode. |
Unit | Gets or sets the unit of the barcode. (Inherited from Barcode) |
Value | Gets or sets the value of barcode. (Inherited from LinearBarcode) |
XDimension | Gets or sets the XDimension of the barcode. (Inherited from Barcode) |
Methods
Draw(Single, ImageFormat) | Draw barcode image. (Inherited from Barcode) |
Draw(Single, Single, ImageFormat) | Draw barcode image. (Inherited from Barcode) |
Draw(String, Single, ImageFormat) | Draw barcode image. (Inherited from Barcode) |
Draw(String, Single, Single, ImageFormat) | Draw barcode image. (Inherited from Barcode) |
Equals(Object) | Determines whether the specified Object is equal to the current Object . (Inherited from Object) |
GetHashCode() | Serves as a hash function for a particular type. (Inherited from Object) |
GetRecommendedQuietZone(Single, Single) | Gets the recommanded quietzone of the barcode. (Inherited from Barcode) |
GetRequiredSize(Single, Single) | Returns the size required to display the full barcode. (Inherited from Barcode) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
ToString() | Returns a String that represents the current Object . (Inherited from Object) |