PageWidth 属性

       

返回或设置页面宽度(以磅为单位)。Single 类型,可读写。

expression.PageWidth

expression   必需。该表达式返回一个 PageSetup 对象。

说明

如果设置了 PageWidth 属性,则 PaperSize 属性将改为 wdPaperCustom

使用 PaperSize 属性设置预定义大小的纸张的页面高度和宽度,例如 Letter 或 A4 纸。

示例

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

Set doc1set = Documents("Document1").PageSetup
Msgbox "The page width is " _
    & PointsToInches(doc1set.PageWidth) & " inches."