返回或设置页眉与页面顶边之间的距离(以磅为单位)。Single 类型,可读写。
本示例显示页眉与页面顶边之间的距离。PointsToInches 方法用来将磅值转换为英寸。
Dim sngDistance As Single sngDistance = ActiveDocument.PageSetup.HeaderDistance Msgbox PointsToInches(sngDistance) & " inches"