DocumentBase.PageSetup 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个与文档关联的 PageSetup。
public Microsoft.Office.Interop.Word.PageSetup PageSetup { get; set; }
属性值
一个与文档关联的 PageSetup。
示例
下面的代码示例将文档的方向更改为横向。 若要使用此示例,请在 ThisDocument 文档级项目的类中运行它。
private void DocumentPageSetup()
{
this.PageSetup.Orientation = Microsoft.Office.
Interop.Word.WdOrientation.wdOrientLandscape;
}
Private Sub DocumentPageSetup()
Me.PageSetup.Orientation = Microsoft.Office.Interop.Word.WdOrientation. _
wdOrientLandscape
End Sub