[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IEAN13

IEAN13 Interface

Represents an EAN-13 barcode.

EAN-13 barcode consists of 12 numeric digits and one check digit. This interface provides access to barcode-specific options such as the add-on text and its label position, together with the common barcode, font, and label settings defined by IBarcode, IFontOption, and ILabelOption.

In the example below, cell A1 stores the 12-digit EAN-13 primary code, and "12" passed to the formula is the separate add-on text.

Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public interface IEAN13 : IBarcode, IFontOption, ILabelOption
Public Interface IEAN13
    Inherits IBarcode, IFontOption, ILabelOption
Examples
worksheet.Range["A1"].Value = "123456789012";
worksheet.Range["B1"].Formula = "=BC_EAN13(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",1,\"bottom\",\"12\",\"bottom\",,\"normal\",\"normal\",\"none\",\"center\",12,11,7,0,0)";
IEAN13 barcode = (IEAN13) worksheet.Range["B1"].Value;
string primaryCode = barcode.Value;
string addOn = barcode.AddOn;
string addOnLabelPosition = barcode.AddOnLabelPosition;

Properties

Name Description
AddOn

Gets the add-on text of the EAN-13 barcode.

The add-on text is an optional supplemental code associated with the barcode. When present, its length is 2 or 5 characters.

In the example below, cell A1 provides the 12-digit primary code and "12" passed to the formula is the separate add-on text.

AddOnLabelPosition

Gets the position of the add-on text on the EAN-13 barcode.

In the example below, cell A1 provides the 12-digit primary code and "12" passed to the formula is the separate add-on text.