UniPRT SDK v2.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 成员函数 继承自 LabelMaker.Interfaces.IBarcode1D.ABarcode1D
 __init__ (self, Optional[IBarcodeItem] barcode_item=None)
 
str __str__ (self)
 
- Public 成员函数 继承自 LabelMaker.Interfaces.IBarcode1D.IBarcode1D
str __str__ (self)
 

额外继承的成员函数

- Public 属性 继承自 LabelMaker.Interfaces.IBarcode1D.ABarcode1D
 barcode_type = BarcodeTypeEnum1D.NOT_DEFINED
 
 ruler = None
 
 bar_widths = None
 
bool print_human_readable = False
 
 rotation = RotateEnum.NONE
 
- 静态 Public 属性 继承自 LabelMaker.Interfaces.IBarcode1D.IBarcode1D
List barcodes [IBarcodeItem]
 

详细描述

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

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

构造及析构函数说明

◆ __init__()

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

初始化 Barcode1D 类的新实例。

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

成员函数说明

◆ __str__()

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

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

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

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

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