PageSetup 接口

定义

代表页面设置说明。Represents the page setup description. PageSetup 对象包含作为特性的所有页面设置属性(左边距、下边距、纸张大小等)。The PageSetup object contains all page setup attributes (left margin, bottom margin, paper size, and so on) as properties.

public interface class PageSetup
[System.Runtime.InteropServices.Guid("00020971-0000-0000-C000-000000000046")]
public interface PageSetup
type PageSetup = interface
Public Interface PageSetup
属性

注解

使用PageSetup属性返回一个PageSetup对象。Use the PageSetup property to return a PageSetup object.

属性

Application

返回一个 Application 对象,表示 Microsoft Word 应用程序。Returns an Application object that represents the Microsoft Word application.

BookFoldPrinting

真正 的 Microsoft Word 对文档进行打印在一系列的小册子以便打印好的页面可以折叠和作为书籍阅读。True for Microsoft Word to print a document in a series of booklets so the printed pages can be folded and read as a book.

BookFoldPrintingSheets

返回或设置一个Integer类型的值,该值代表每个小册子的页数。Returns or sets an Integer which represents the number of pages for each booklet.

BookFoldRevPrinting

为 Microsoft Word 以逆序打印的书籍折页的双向或亚洲语言文档的打印。True for Microsoft Word to reverse the printing order for book fold printing of bidirectional or Asian language documents.

BottomMargin

返回或设置页面的下边缘与正文文本边界之间的距离 (以磅为单位)。Returns or sets the distance (in points) between the bottom edge of the page and the bottom boundary of the body text.

CharsLine

返回或设置文档网格中每行的字符数。Returns or sets the number of characters per line in the document grid.

Creator

返回一个 32 位整数,它指示在其中创建指定的对象的应用程序。Returns a 32-bit integer that indicates the application in which the specified object was created.

DifferentFirstPageHeaderFooter

如此 如果不同的页眉或页脚使用第一页上。True if a different header or footer is used on the first page. wdUndefinedCan be True, False, or wdUndefined.

FirstPageTray

返回或设置用于文档或节的第一页的纸盒。Returns or sets the paper tray to use for the first page of a document or section.

FooterDistance

返回或设置页脚和页面底部之间的距离 (以磅为单位)。Returns or sets the distance (in points) between the footer and the bottom of the page.

Gutter

返回或设置文档或节的每一页的额外页边距的大小(以磅为单位),以备装订需要。Returns or sets the amount (in points) of extra margin space added to each page in a document or section for binding.

GutterOnTop

仅供内部使用。Reserved for internal use.

GutterPos

返回或设置文档中的装订线位于哪一侧。Returns or sets on which side the gutter appears in a document.

GutterStyle

返回或设置是否 Microsoft Word 使用从右到左或从左到右语言基于当前文档的装订线。Returns or sets whether Microsoft Word uses gutters for the current document based on a right-to-left language or a left-to-right language.

HeaderDistance

返回或设置页眉与页面顶端之间的距离(以磅为单位)。Returns or sets the distance (in points) between the header and the top of the page.

LayoutMode

返回或设置当前文档的布局模式。Returns or sets the layout mode for the current document.

LeftMargin

返回或设置页面左边的缘与正文文本的左边的界之间的距离 (以磅为单位)。Returns or sets the distance (in points) between the left edge of the page and the left boundary of the body text.

LineNumbering

返回或设置 LineNumbering 代表指定对象的行号的对象 PageSetupReturns or sets the LineNumbering object that represents the line numbers for the specified PageSetup object.

LinesPage

返回或设置文档网格中每页的行数。Returns or sets the number of lines per page in the document grid.

MirrorMargins

如此 如果对开页的外侧页边距等宽。True if the inside and outside margins of facing pages are the same width. wdUndefinedCan be True, False, or wdUndefined.

OddAndEvenPagesHeaderFooter

如此如果 PageSetup 为奇数页和偶数页的指定对象有不同的页眉和页脚。True if the specified PageSetup object has different headers and footers for odd-numbered and even-numbered pages. wdUndefinedCan be True, False, or wdUndefined.

Orientation

返回或设置页面的方向。Returns or sets the orientation of the page.

OtherPagesTray

返回或设置用于文档或节中除第一页以外其他所有页的纸盒。Returns or sets the paper tray to be used for all but the first page of a document or section.

PageHeight

返回或设置页面高度(以磅为单位)。Returns or sets the height of the page in points.

PageWidth

返回或设置页面的宽度,以磅为单位。Returns or sets the width of the page in points.

PaperSize

返回或设置纸张大小。Returns or sets the paper size.

Parent

返回一个对象,代表指定对象的父对象。Returns an object that represents the parent object of the specified object.

RightMargin

返回或设置页面的右边缘与正文文本的右边界之间的距离 (以磅为单位)。Returns or sets the distance (in points) between the right edge of the page and the right boundary of the body text.

SectionDirection

返回或设置阅读顺序和对齐方式指定节。Returns or sets the reading order and alignment for the specified sections.

SectionStart

返回或设置指定对象的分节符的类型。Returns or sets the type of section break for the specified object.

ShowGrid

此成员仅适用于 Macintosh 并且不应使用。This member is for Macintosh only and should not be used.

SuppressEndnotes

如此 如果下一个没有隐藏尾注的节的末尾打印尾注。True if endnotes are printed at the end of the next section that doesn't suppress endnotes. 在该节的尾注之前打印隐藏的尾注。Suppressed endnotes are printed before the endnotes in that section.

TextColumns

返回一个 TextColumns 集合,该集合代表指定对象的一组文本列 PageSetupReturns a TextColumns collection that represents the set of text columns for the specified PageSetup object.

TopMargin

返回或设置页面的上边缘与正文文本上部边界之间的距离 (以磅为单位)。Returns or sets the distance (in points) between the top edge of the page and the top boundary of the body text.

TwoPagesOnOne

如此 如果 Microsoft Word 打印指定的文档的两页。True if Microsoft Word prints the specified document two pages per sheet.

VerticalAlignment

返回或设置文档或节中每页文本的垂直对齐方式。Returns or sets the vertical alignment of text on each page in a document or section.

方法

SetAsTemplateDefault()

将指定的页面设置格式设为活动文档和所有基于活动模板的新文档的默认格式。Sets the specified page setup formatting as the default for the active document and all new documents based on the active template.

TogglePortrait()

在文档或节的纵向和横向页面方向之间切换。Switches between portrait and landscape page orientations for a document or section.

适用于