Share via


HeaderFooter.Exists Property

True if the specified HeaderFooter object exists.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property Exists As Boolean
    Get
    Set
'Usage
Dim instance As HeaderFooter
Dim value As Boolean

value = instance.Exists

instance.Exists = value
bool Exists { get; set; }

Property Value

Type: System.Boolean

Remarks

The primary header and footer exist in all new documents by default. Use this method to determine whether a first-page or odd-page header or footer exists. You can also use the DifferentFirstPageHeaderFooter or OddAndEvenPagesHeaderFooter property to return or set the number of headers and footers in the specified document or section.

See Also

Reference

HeaderFooter Interface

HeaderFooter Members

Microsoft.Office.Interop.Word Namespace