Ean8Sup2
Represents an EAN/JAN 8, 2 digit supplement barcode.
public class Ean8Sup2 : Ean8, ICoordinate, ISerializable
Public Class Ean8Sup2
Inherits Ean8
Implements ICoordinate, ISerializable
Inheritance: ObjectPageElementTaggablePageElementRotatingPageElementBarCodeUpcBaseEan8Ean8Sup2
Implements: ICoordinate, ISerializable
Licensing Info
This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Examples
The following example will place an EAN/JAN 8, 2 digit supplement barcode on the page.Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements.BarCoding
Module MyModule
Sub Main()
' Create a PDF Document
Dim MyDocument As Document = New Document
' Create a Page and add it to the document
Dim MyPage As Page = New Page
MyDocument.Pages.Add(MyPage)
' Create a barcode
Dim barCode As Ean8Sup2 = New Ean8Sup2("1234567012", 50, 50)
' Add the barcode to the page
MyPage.Elements.Add(barCode)
' Save the PDF
MyDocument.Draw("C:\MyDocument.pdf")
End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements.BarCoding;
public class Example
{
public static void CreatePDF(string outputPath)
{
// Create a PDF Document
Document document = new Document();
// Create a Page and add it to the document
Page page = new Page();
document.Pages.Add(page);
// Create a barcode
Ean8Sup2 barCode = new Ean8Sup2("1234567012", 50, 50);
// Add the barcode to the page
page.Elements.Add(barCode);
// Save the PDF
document.Draw(outputPath);
}
}
Remarks
This class can be used to place an EAN/JAN 8, 2 digit supplement barcode on a page.
Constructors
Ean8Sup2(String, Single, Single) | Initializes a new instance of the Ean8Sup2 class. |
Ean8Sup2(String, Single, Single, Single) | Initializes a new instance of the Ean8Sup2 class. |
Ean8Sup2(String, String, Single, Single) | Initializes a new instance of the Ean8Sup2 class. |
Ean8Sup2(String, String, Single, Single, Single) | Initializes a new instance of the Ean8Sup2 class. |
Properties
Angle | Gets or sets the heights of the angle element. (Inherited from RotatingPageElement) |
Color | Gets or sets the Color of the barcode. (Inherited from BarCode) |
Height | Gets or sets the heights of the page element. (Inherited from RotatingPageElement) |
ID | Gets or sets the ID of the page element. (Inherited from PageElement) |
IgnoreMargins | Gets or sets ignore margin property. Setting false will consider the margin while placing the page element based on the RelativeTo property. (Inherited from PageElement) |
PixelsPerXDimension | Gets or Sets the pixels per XDimension (Inherited from BarCode) |
RelativeTo | Gets and sets placement of the page element on the page. (Inherited from PageElement) |
SupplementalValue | Gets or sets the supplemental value of the barcode. |
Tag | Gets or sets the tag of the taggable element. (Inherited from TaggablePageElement) |
TagOrder | Gets or sets the tag order of the taggable element. (Inherited from TaggablePageElement) |
Value | Gets or sets the value of the barcode. (Inherited from BarCode) |
X | Gets or sets the X coordinate of the page element. (Inherited from RotatingPageElement) |
XDimension | Gets or sets the XDimension of the barcode. (Inherited from BarCode) |
XDimensionMilliMeters | Gets or sets the XDimensionMilliMeters of the barcode. (Inherited from BarCode) |
XDimensionMils | Gets or sets the XDimensionMils of the barcode. (Inherited from BarCode) |
XDimensionsPerCentiMeter | Gets or sets the XDimensionsPerCentiMeter of the barcode. (Inherited from BarCode) |
XDimensionsPerInch | Gets or sets the XDimensionsPerInch of the barcode. (Inherited from BarCode) |
Y | Gets or sets the Y coordinate of the page element. (Inherited from RotatingPageElement) |
Methods
Draw(PageWriter) | Draws the page element to the given PageWriter object. (Inherited from RotatingPageElement) |
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) |
GetSymbolWidth() | Returns the width required to display the full barcode. |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
SetScale(Single) | Sets the scale of the barcode. (Inherited from UpcBase) |
ToString() | Returns a String that represents the current Object . (Inherited from Object) |