resetCommands 重置打印机指令
resetCommands
类型: MethodDeclaration
所属类: Printer
定义位置: printer.ts
描述
重置打印机指令
返回值
类型: void
源代码
位置: 第 1282 行
private static resetCommands(): void {
const commands = this.commands
const count = this.commandCount
for (let i = 0; i < count; i++) {
const command = commands[i]
command.string = ''
command.image = null
command.imageWidth = 0
command.imageHeight = 0
command.imageSpacing = 0
command.horizontalWidth = 0
}
this.commandCount = 0
}
文档生成时间:2025/7/7 12:07:06