表示文本對象的類。 更多...
公開方法(Public Methods) | |
| __init__ (self, Optional[ITextItem] text=None) | |
| 初始化 Text 類的新實例。 | |
| str | __str__ (self) |
| 返回一個可以發送到打印機的字符串。 | |
| IFontSize | get_font_size_pgl (self, IFontSize font_size, FontSizeUnitsEnum font_units, Optional[IRuler] ruler) |
公開方法(Public Methods) 繼承自 LabelMaker.Interfaces.IText.AText | |
| str | to_string_with_print_plane (self, Optional[object] print_plane) |
| 將文本對象轉換為帶有可選打印平面的字符串。 | |
公開屬性 | |
| font_style | |
| font_size_units | |
額外的繼承成員 | |
靜態公開屬性 繼承自 LabelMaker.Interfaces.IText.IText | |
| List | text [ITextItem] |
靜態公開屬性 繼承自 LabelMaker.Interfaces.IText.ITextSettings | |
| IRuler | ruler |
靜態公開屬性 繼承自 LabelMaker.Interfaces.IFont.IFont | |
| str | font_name |
靜態公開屬性 繼承自 LabelMaker.Interfaces.IFont.IFontStyle | |
| FontStyleEnum | font_style |
靜態公開屬性 繼承自 LabelMaker.Interfaces.IFont.IFontSizeUnits | |
| FontSizeUnitsEnum | font_size_units |
靜態公開屬性 繼承自 LabelMaker.Interfaces.ISettings.IRotation | |
| RotateEnum | rotation |
表示文本對象的類。
此類繼承自 AText,並提供了用於初始化、配置和描述用於打印目的的文本對象的功能。 可以使用各種字體樣式、大小和對齊方式來配置文本對象。
| LabelMaker.PGL.Text.Text.__init__ | ( | self, | |
| Optional[ITextItem] | text = None ) |
初始化 Text 類的新實例。
此構造函數使用提供的文本項列表(使用相同的文本設置)設置一個新的文本對象。
| text | 使用相同文本設置的文本項列表。 |
| str LabelMaker.PGL.Text.Text.__str__ | ( | self | ) |
返回一個可以發送到打印機的字符串。
此方法生成 Text 實例的字符串表示形式,該字符串已格式化並準備發送到打印機。 字符串包括所有打印所需的命令和數據。
| IFontSize LabelMaker.PGL.Text.Text.get_font_size_pgl | ( | self, | |
| IFontSize | font_size, | ||
| FontSizeUnitsEnum | font_units, | ||
| Optional[IRuler] | ruler ) |
| LabelMaker.PGL.Text.Text.font_size_units |
| LabelMaker.PGL.Text.Text.font_style |