Upravit

Sdílet prostřednictvím


PageNumbers.Add(Object, Object) Method

Definition

Returns a PageNumber object that represents page numbers added to a header or footer in a section.

public Microsoft.Office.Interop.Word.PageNumber Add (ref object PageNumberAlignment, ref object FirstPage);
abstract member Add : obj * obj -> Microsoft.Office.Interop.Word.PageNumber
Public Function Add (Optional ByRef PageNumberAlignment As Object, Optional ByRef FirstPage As Object) As PageNumber

Parameters

PageNumberAlignment
Object

Optional Object. Can be any WdPageNumberAlignment constant.

FirstPage
Object

Optional Object. False to make the first-page header and the first-page footer different from the headers and footers on all subsequent pages in the document. If FirstPage is set to False, a page number isn't added to the first page. If this argument is omitted, the setting is controlled by the DifferentFirstPageHeaderFooter property.

Returns

Remarks

If the LinkToPrevious property for the HeaderFooter object is set to True, the page numbers will continue sequentially from one section to next throughout the document.

Applies to