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. | |
![]() | |
NSMutableArray< id< ITextItem > > * | text |
id< IRuler > | ruler |
NSString * | fontName |
FontStyleEnum | fontStyle |
FontSizeUnitsEnum | fontSizeUnits |
AlignEnum | alignment |
RotateEnum | rotation |
![]() | |
NSArray< id< ITextItem > > * | text |
List of text items that use the same text settings. | |
![]() | |
id< IRuler > | ruler |
Ruler to use for text positioning and font size if using ruler for font scaling/resizing. | |
![]() | |
NSString * | fontName |
The name of the font to use. | |
![]() | |
FontSizeUnitsEnum | fontSizeUnits |
Font size units for character sizing. | |
![]() | |
AlignEnum | alignment |
![]() | |
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.