A class representing a text object for TSPL. More...
#include <_Text.h>
Instance Methods | |
| (instancetype) | - init |
| Initializes a new instance of the _Text class. | |
| (instancetype) | - initWithTextItem: |
| Initializes a new instance of the _Text class with the specified text item. | |
| (NSString *) | - description |
| Returns a string that can be sent to the printer. | |
Properties | |
| TSPLReferencePoint | referencePoint |
| The reference point for the text in TSPL. | |
| BOOL | reverse |
| A flag indicating whether the text should be printed in reverse. | |
Properties inherited from AText | |
| NSMutableArray< id< ITextItem > > * | text |
| id< IRuler > | ruler |
| NSString * | fontName |
| FontStyleEnum | fontStyle |
| FontSizeUnitsEnum | fontSizeUnits |
| AlignEnum | alignment |
| RotateEnum | rotation |
Properties inherited from <IText> | |
| NSArray< id< ITextItem > > * | text |
| List of text items that use the same text settings. | |
Properties inherited from <ITextSettings> | |
| id< IRuler > | ruler |
| Ruler to use for text positioning and font size if using ruler for font scaling/resizing. | |
Properties inherited from <IFont> | |
| NSString * | fontName |
| The name of the font to use. | |
Properties inherited from <IFontSizeUnits> | |
| FontSizeUnitsEnum | fontSizeUnits |
| Font size units for character sizing. | |
Properties inherited from <IAlignment> | |
| AlignEnum | alignment |
Properties inherited from <IRotation> | |
| RotateEnum | rotation |
A class representing a text object for TSPL.
This class inherits from AText and provides functionality for initializing and describing text objects in TSPL.
| - (NSString *) description |
Returns a string that can be sent to the printer.
This method generates a string representation of the _Text instance that is formatted and ready to be sent to a printer. The string includes all the necessary commands and data required for printing in TSPL.
Reimplemented from AText.
| - (instancetype) init |
| - (instancetype) initWithTextItem: | (id< ITextItem >) | text |
|
readwritenonatomicassign |
The reference point for the text in TSPL.
|
readwritenonatomicassign |
A flag indicating whether the text should be printed in reverse.