AText的基類。 更多...
公開方法(Public Methods) | |
| __init__ (self, Optional[ITextItem] text_item=None) | |
| 初始化帶有可選文本項的文本對象。 | |
| str | __str__ (self) |
| 返回文本對象的字符串表示形式。 | |
| str | to_string_with_print_plane (self, Optional[object] print_plane) |
| 將文本對象轉換為帶有可選打印平面的字符串。 | |
公開方法(Public Methods) 繼承自 LabelMaker.Interfaces.IText.IText | |
| str | __str__ (self) |
公開屬性 | |
| 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 |
額外的繼承成員 | |
靜態公開屬性 繼承自 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 |