语法
表达式.PageHeight
表达式 返回 PageSetup 对象的表达式。
说明
如果设置了 PageHeight 属性,则 PaperSize 属性会改为 wdPaperCustom。使用 PaperSize 属性可设置预定义大小的纸张的页面高度和宽度,例如 Letter 或 A4 纸。
示例
本示例将活动文档的页面高度设置为 9 英寸。
ActiveDocument.PageSetup.PageHeight = InchesToPoints(9) ActiveDocument.PageSetup.PageWidth = InchesToPoints(7)