Skip to main content

setPrintArea 设置打印区域

setPrintArea

类型: MethodDeclaration

所属类: Printer

定义位置: printer.ts

描述

设置打印区域

参数 width: 矩形宽度

参数 height: 矩形高度

参数

参数名类型描述默认值
widthnumber--
heightnumber--

返回值

类型: void

源代码

位置: 第 279 行

public setPrintArea(width: number, height: number): void {
this.printWidth = width
this.printHeight = height
}

文档生成时间:2025/7/7 12:07:06