UniPRT SDK v2.0.0.0
 
载入中...
搜索中...
未找到
LabelMaker.Interfaces.IText.AText类 参考

AText的基类。 更多...

类 LabelMaker.Interfaces.IText.AText 继承关系图:
LabelMaker.Interfaces.IText.IText LabelMaker.Interfaces.IText.ITextSettings LabelMaker.Interfaces.IFont.IFont LabelMaker.Interfaces.IFont.IFontStyle LabelMaker.Interfaces.IFont.IFontSizeUnits LabelMaker.Interfaces.ISettings.IRotation LabelMaker.PGL.Text.Text LabelMaker.TSPL.Text.Text

Public 成员函数

 __init__ (self, Optional[ITextItem] text_item=None)
 初始化带有可选文本项的文本对象。
 
str __str__ (self)
 返回文本对象的字符串表示形式。
 
str to_string_with_print_plane (self, Optional[object] print_plane)
 将文本对象转换为带有可选打印平面的字符串。
 
- Public 成员函数 继承自 LabelMaker.Interfaces.IText.IText
str __str__ (self)
 

Public 属性

Optional[IRulerruler = None
 
Optional[str] font_name = None
 
str font_style = FontStyleEnum.NORMAL
 
str font_size_units = FontSizeUnitsEnum.POINTS
 
str alignment = AlignEnum.DEFAULT
 
str rotation = RotateEnum.NONE
 

额外继承的成员函数

- 静态 Public 属性 继承自 LabelMaker.Interfaces.IText.IText
List text [ITextItem]
 

详细描述

AText的基类。

此类提供了文本处理的基本实现,具有文本项、字体设置、对齐和旋转的属性。

构造及析构函数说明

◆ __init__()

LabelMaker.Interfaces.IText.AText.__init__ ( self,
Optional[ITextItem] text_item = None )

初始化带有可选文本项的文本对象。

参数
text_item可选的初始文本项,添加到文本对象中。

成员函数说明

◆ __str__()

str LabelMaker.Interfaces.IText.AText.__str__ ( self)

返回文本对象的字符串表示形式。

◆ to_string_with_print_plane()

str LabelMaker.Interfaces.IText.AText.to_string_with_print_plane ( self,
Optional[object] print_plane )

将文本对象转换为带有可选打印平面的字符串。

参数
print_plane可选的打印平面对象。
返回
带有打印平面的文本对象的字符串表示形式。

类成员变量说明

◆ alignment

str LabelMaker.Interfaces.IText.AText.alignment = AlignEnum.DEFAULT

◆ font_name

Optional[str] LabelMaker.Interfaces.IText.AText.font_name = None

◆ font_size_units

str LabelMaker.Interfaces.IText.AText.font_size_units = FontSizeUnitsEnum.POINTS

◆ font_style

str LabelMaker.Interfaces.IText.AText.font_style = FontStyleEnum.NORMAL

◆ rotation

str LabelMaker.Interfaces.IText.AText.rotation = RotateEnum.NONE

◆ ruler

Optional[IRuler] LabelMaker.Interfaces.IText.AText.ruler = None

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