Class BarcodeToken
Token pre tlač čiarového kódu
Inherited Members
Namespace: NineDigiteKasa
Assembly: NineDigit.eKasa.dll
Syntax
public sealed class BarcodeToken : PrintToken
Properties
Content
Obsah čiarového kódu
Declaration
public string Content { get; }
Property Value
| Type | Description |
|---|---|
| string |
ElementWidth
Šírka elementu čiarového kódu. Podporované iba v prípade tlačiarne papierových dokladov.
Declaration
public BarcodeElementWidth? ElementWidth { get; }
Property Value
| Type | Description |
|---|---|
| BarcodeElementWidth |
Height
Výška čiarového kódu. V prípade null hodnoty určuje prevolenú hodnotu zvolená tlačiareň.
Declaration
public byte? Height { get; }
Property Value
| Type | Description |
|---|---|
| byte |
HriPosition
Určenie pozície textu pri čiarovom kóde. Podporované iba v prípade tlačiarne papierových dokladov.
Declaration
public BarcodeHriPosition? HriPosition { get; }
Property Value
| Type | Description |
|---|---|
| BarcodeHriPosition |
Type
Typ čiarového kódu
Declaration
public BarcodeType? Type { get; }
Property Value
| Type | Description |
|---|---|
| BarcodeType |
Methods
Create(string, BarcodeType, BarcodeHriPosition?, byte?, byte?)
Vytvorí novú inštanciu tokenu pre tlač čiarového kódu.
Declaration
public static BarcodeToken Create(string content, BarcodeType type, BarcodeHriPosition? hriPosition = null, byte? height = null, byte? elementWidth = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | content | Obsah čiarového kódu |
| BarcodeType | type | Typ čiarového kódu |
| BarcodeHriPosition | hriPosition | Určenie pozície textu pri čiarovom kóde. Podporované iba v prípade tlačiarne papierových dokladov. |
| byte | height | Výška čiarového kódu. V prípade |
| byte | elementWidth | Šírka elementu čiarového kódu. Podporované iba v prípade tlačiarne papierových dokladov. |
Returns
| Type | Description |
|---|---|
| BarcodeToken |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |