StackedGS1DataBar
Represents a StackedGS1DataBar barcode.
public class StackedGS1DataBar : TaggablePageElement, ICoordinate, ISerializable
Public Class StackedGS1DataBar
Inherits TaggablePageElement
Implements ICoordinate, ISerializable
Inheritance: ObjectPageElementTaggablePageElementStackedGS1DataBar
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 a GS1DataBar 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 StackedGS1DataBar = New StackedGS1DataBar("(01)9889876543210", 50, 50, 50, StackedGS1DataBarType.Stacked)
' 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
StackedGS1DataBar barCode = new StackedGS1DataBar("(01)9889876543210", 50, 50, 50, StackedGS1DataBarType.Stacked);
// Add the barcode to the page
page.Elements.Add( barCode );
// Save the PDF
document.Draw(outputPath);
}
}
Remarks
This class can be used to place a StackedGS1DataBar barcode on a page.
Constructors
StackedGS1DataBar(String, Single, Single, Single, StackedGS1DataBarType) | Initializes a new instance of the StackedGS1DataBar class. |
StackedGS1DataBar(String, Single, Single, Single, StackedGS1DataBarType, Boolean) | Initializes a new instance of the StackedGS1DataBar class. |
StackedGS1DataBar(String, Single, Single, Single, StackedGS1DataBarType, Font, Single) | Initializes a new instance of the StackedGS1DataBar class. |
StackedGS1DataBar(String, Single, Single, Single, StackedGS1DataBarType, Single) | Initializes a new instance of the StackedGS1DataBar class. |
StackedGS1DataBar(String, Single, Single, Single, StackedGS1DataBarType, Single, Boolean) | Initializes a new instance of the StackedGS1DataBar class. |
StackedGS1DataBar(String, Single, Single, Single, StackedGS1DataBarType, Single, Font, Single) | Initializes a new instance of the StackedGS1DataBar class. |
Properties
Angle | Gets or sets the angle of the barcode. |
Color | Gets or sets the color for the barcode. |
ExpandedStackedSegmentCount | Gets or Sets the segment count of the Expanded Stacked barcode. |
Font | Gets or sets the font to use when displaying the text. |
FontSize | Gets or sets the font size to use when displaying the text. |
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 number of Pixels to write per xDimension |
RelativeTo | Gets and sets placement of the page element on the page. (Inherited from PageElement) |
RowCount | Gets the row count. |
RowHeight | Gets or Sets the row height of the Barcode. |
ShowText | Gets or Sets a boolean indicating whether the text to be displayed. |
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) |
TextAlign | Gets or sets the alignment to use when displaying the text. |
TextColor | Gets or set the color of the text. |
X | Gets or sets the X coordinate of the barcode. |
XDimension | Gets or sets the xDimension of the barcode. |
Y | Gets or sets the Y coordinate of the barcode. |
Methods
Draw(PageWriter) | Draws the StackedGS1DataBar barcode to the given PageWriter object. |
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) |
GetSymbolHeight() | Returns the height required to display the full barcode. |
GetSymbolWidth() | Returns the width required to display the full barcode. |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
ToString() | Returns a String that represents the current Object . (Inherited from Object) |