HeadersFooters Interface 

A collection of HeaderFooter objects that represent the headers or footers in the specified section of a document.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Public Class eadersFootersImplementation
    Implements HeadersFooters
End Class
Dim eadersFootersImplementation1 As New eadersFootersImplementation()

Syntax

Public Interface HeadersFooters
    Inherits IEnumerable
public interface HeadersFooters : IEnumerable
public interface class HeadersFooters : public IEnumerable
public interface HeadersFooters implements IEnumerable
public interface HeadersFooters implements IEnumerable

Remarks

Use the Headers or Footers property to return the HeadersFooters collection.

Note

You cannot add HeaderFooter objects to the HeadersFooters collection.

Use Headers(index) or Footers(index), where index is one of the WdHeaderFooterIndex constants (wdHeaderFooterEvenPages, wdHeaderFooterFirstPage, or wdHeaderFooterPrimary), to return a single HeaderFooter object.

You can also return a single HeaderFooter object by using the HeaderFooter property with a Selection object.

Use the DifferentFirstPageHeaderFooter property with the PageSetup object to specify a different first page.

Use the OddAndEvenPagesHeaderFooter property with the PageSetup object to specify different odd and even page headers and footers. If the OddAndEvenPagesHeaderFooter property is True, you can return an odd header or footer by using wdHeaderFooterPrimary, and you can return an even header or footer by using wdHeaderFooterEvenPages.

Use the Add method with the PageNumbers object to add a page number to a header or footer.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Word Namespace

Other Resources

HeadersFooters Members