UniPRT SDK v1.0.0.0
 
载入中...
搜索中...
未找到
LabelMaker.TSPL.Barcode1D.Barcode1D类 参考

表示 TSPL 的 1D 条形码的类。 更多...

类 LabelMaker.TSPL.Barcode1D.Barcode1D 继承关系图:
LabelMaker.Interfaces.IBarcode1D.ABarcode1D LabelMaker.Interfaces.IBarcode1D.IBarcode1D LabelMaker.Interfaces.IBarcode1D.IBarcode1DProperties LabelMaker.Interfaces.ISettings.IRotation LabelMaker.Interfaces.IBarcode1D.IBarcodeType1D

Public 成员函数

 __init__ (self, Optional[IBarcodeItem] barcode=None)
 初始化 Barcode1D 类的新实例。
 
 __str__ (self)
 返回一个可以发送到印表机的字符串。
 

Public 属性

 barcode_type
 
- Public 属性 继承自 LabelMaker.Interfaces.IBarcode1D.ABarcode1D
 barcodes
 
 barcode_type
 
 ruler
 
 bar_widths
 
 print_human_readable
 
 rotation
 

额外继承的成员函数

- 静态 Public 属性 继承自 LabelMaker.Interfaces.IBarcode1D.IBarcode1D
List barcodes [IBarcodeItem]
 
- 静态 Public 属性 继承自 LabelMaker.Interfaces.IBarcode1D.IBarcode1DProperties
IRuler ruler
 
IBarWidths bar_widths
 
bool print_human_readable
 
- 静态 Public 属性 继承自 LabelMaker.Interfaces.ISettings.IRotation
RotateEnum rotation
 
- 静态 Public 属性 继承自 LabelMaker.Interfaces.IBarcode1D.IBarcodeType1D
BarcodeTypeEnum1D barcode_type
 

详细描述

表示 TSPL 的 1D 条形码的类。

此类继承自 ABarcode1D,并提供了在 TSPL 中初始化和描述 1D 条形码的功能。

构造及析构函数说明

◆ __init__()

LabelMaker.TSPL.Barcode1D.Barcode1D.__init__ ( self,
Optional[IBarcodeItem] barcode = None )

初始化 Barcode1D 类的新实例。

参数
barcode用于初始化的条形码项。
返回
Barcode1D 的新实例。

重载 LabelMaker.Interfaces.IBarcode1D.ABarcode1D .

成员函数说明

◆ __str__()

LabelMaker.TSPL.Barcode1D.Barcode1D.__str__ ( self)

返回一个可以发送到印表机的字符串。

此方法生成 Barcode1D 实例的字符串表示形式,该字符串已格式化并准备发送到印表机。 字符串包括在 TSPL 中打印所需的所有命令和数据。

返回
Barcode1D 实例的字符串描述。

重载 LabelMaker.Interfaces.IBarcode1D.ABarcode1D .

类成员变量说明

◆ barcode_type

LabelMaker.TSPL.Barcode1D.Barcode1D.barcode_type

该类的文档由以下文件生成: