WPS 基础接口 > 文字 API 参考 > PageSetup > 属性 > PageSetup.PageWidth 属性
返回或设置页面宽度(以磅为单位)。Single 类型,可读写。

语法

表达式.PageWidth

表达式   返回 PageSetup 对象的表达式。

说明

如果设置了 PageWidth 属性,则 PaperSize 属性将改为 wdPaperCustom。使用 PaperSize 属性可设置预定义大小的纸张的页面高度和宽度,例如 Letter 或 A4 纸。

示例

本示例返回 Document1 的页面宽度。可用 PointsToInches 方法将磅值转换为英寸。

示例代码
let doc1set = Documents.Item("Document1").PageSetup
MsgBox("The page width is "+PointsToInches(doc1set.PageWidth)+" inches.")


请参阅