UniPRT SDK v2.0.0.0
 
Loading...
Searching...
No Matches
LabelMaker.Interfaces.IText.AText Class Reference

Base class for AText. More...

Inheritance diagram for 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 Member Functions

 __init__ (self, Optional[ITextItem] text_item=None)
 Initializes a text object with optional text item.
 
str __str__ (self)
 Returns a string representation of the text object.
 
str to_string_with_print_plane (self, Optional[object] print_plane)
 Converts the text object to a string with an optional print plane.
 
- Public Member Functions inherited from LabelMaker.Interfaces.IText.IText
str __str__ (self)
 

Public Attributes

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
 

Additional Inherited Members

- Static Public Attributes inherited from LabelMaker.Interfaces.IText.IText
List text [ITextItem]
 

Detailed Description

Base class for AText.

This class provides a base implementation for text handling, with properties for text items, font settings, alignment, and rotation.

Constructor & Destructor Documentation

◆ __init__()

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

Initializes a text object with optional text item.

Parameters
text_itemAn optional initial text item to add to the text object.

Member Function Documentation

◆ __str__()

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

Returns a string representation of the text object.

◆ to_string_with_print_plane()

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

Converts the text object to a string with an optional print plane.

Parameters
print_planeAn optional print plane object.
Returns
A string representation of the text object with the print plane.

Member Data Documentation

◆ 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

The documentation for this class was generated from the following file: