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

用于处理一维条形码的基类。 更多...

类 LabelMaker.PGL.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 __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]
 

详细描述

用于处理一维条形码的基类。

此类提供了用于创建和管理一维条形码的功能,包括计算放大倍数和格式化条形码数据以便打印。

构造及析构函数说明

◆ __init__()

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

使用指定的条形码项初始化Barcode1D类的新实例。

参数
barcode用于初始化的条形码项。

成员函数说明

◆ __str__()

str LabelMaker.PGL.Barcode1D.Barcode1D.__str__ ( self)

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

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

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

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