表示 TSPL 標籤的類。 更多...
#include <Label.h>
實體方法 | |
| (instancetype) | - initWithName: |
| 使用指定的名稱初始化 Label 類的新實例。 | |
| (void) | - addObject: |
| 向標籤添加一個可以轉換為打印機語言語法的對象。 | |
| (void) | - addRawContent: |
| 向標籤添加原始內容,以便在需要添加自定義內容的情況下使用。 | |
| (NSString *) | - description |
| 返回可以發送到打印機的字符串。 | |
| (void) | - SetName: |
| 設置標籤的名稱。 | |
屬性(properties) | |
| TsplForm * | form |
| 與標籤關聯的格式。 | |
| Scale * | scale |
| 與標籤關聯的比例。 | |
| NSString * | name |
| 標籤的名稱。 | |
屬性(properties) 繼承自 <ILabel> | |
| NSString * | name |
| 標籤的名稱,可用於將其與其他標籤區分開來。 | |
表示 TSPL 標籤的類。
該類實現了 ILabel 協議,提供了在 TSPL 中初始化、添加對象和原始內容以及描述標籤的功能。
| - (void) addObject: | (id) | addObject |
| - (void) addRawContent: | (NSString *) | rawContent |
向標籤添加原始內容,以便在需要添加自定義內容的情況下使用。
添加原始內容允許添加打印機語言命令或其他可能不可用的功能。 不對內容進行任何格式化;調用者負責確保內容符合打印機語言語法。
| rawContent | 要添加到標籤的原始內容。 |
依據<ILabel>重新實作.
| - (NSString *) description |
| - (instancetype) initWithName: | (NSString *) | name |
| - (void) SetName: | (NSString *) | name |
設置標籤的名稱。
| name | 標籤的新名稱。 |
|
readwritenonatomicstrong |
與標籤關聯的格式。
|
readwritenonatomicstrong |
標籤的名稱。
|
readwritenonatomicstrong |
與標籤關聯的比例。