HeaderFooter.LinkToPrevious Property 

True if the specified header or footer is linked to the corresponding header or footer in the previous section. When a header or footer is linked, its contents are the same as in the previous header or footer.

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

Usage

Dim headerFooter1 As HeaderFooter

Dim returnValue As Boolean
returnValue = headerFooter1.LinkToPrevious

Dim sampleValue As Boolean
headerFooter1.LinkToPrevious = sampleValue

Syntax

Property LinkToPrevious() As Boolean
bool LinkToPrevious {get; set;}
property Boolean LinkToPrevious{
    Boolean get();
    Void set(Boolean);
}
public boolean get_LinkToPrevious();
public void set_LinkToPrevious(boolean);
function get LinkToPrevious() : Boolean;
function set LinkToPrevious(Boolean);

Remarks

Because the LinkToPrevious property is set to True by default, you can add headers, footers, and page numbers to your entire document by working with the headers, footers, and page numbers in the first section.

The LinkToPrevious property applies to each header or footer individually. For example, the LinkToPrevious property could be set to True for the even-numbered-page header but False for the even-numbered-page footer.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

HeaderFooter Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

HeaderFooter Members