AText的基类。 更多...
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[IRuler] | ruler = 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的基类。
此类提供了文本处理的基本实现,具有文本项、字体设置、对齐和旋转的属性。
| LabelMaker.Interfaces.IText.AText.__init__ | ( | self, | |
| Optional[ITextItem] | text_item = None ) |
初始化带有可选文本项的文本对象。
| text_item | 可选的初始文本项,添加到文本对象中。 |
| str LabelMaker.Interfaces.IText.AText.__str__ | ( | self | ) |
返回文本对象的字符串表示形式。
| str LabelMaker.Interfaces.IText.AText.to_string_with_print_plane | ( | self, | |
| Optional[object] | print_plane ) |
将文本对象转换为带有可选打印平面的字符串。
| print_plane | 可选的打印平面对象。 |
| str LabelMaker.Interfaces.IText.AText.alignment = AlignEnum.DEFAULT |
| Optional[str] LabelMaker.Interfaces.IText.AText.font_name = None |
| str LabelMaker.Interfaces.IText.AText.font_size_units = FontSizeUnitsEnum.POINTS |
| str LabelMaker.Interfaces.IText.AText.font_style = FontStyleEnum.NORMAL |
| str LabelMaker.Interfaces.IText.AText.rotation = RotateEnum.NONE |
| Optional[IRuler] LabelMaker.Interfaces.IText.AText.ruler = None |