Share via


Selection.HeaderFooter Property

Returns a HeaderFooter object for the specified selection.

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

Syntax

'Declaration
ReadOnly Property HeaderFooter As HeaderFooter
    Get
'Usage
Dim instance As Selection
Dim value As HeaderFooter

value = instance.HeaderFooter
HeaderFooter HeaderFooter { get; }

Property Value

Type: Microsoft.Office.Interop.Word.HeaderFooter

Remarks

An error occurs if the selection isn't located within a header or footer.

See Also

Reference

Selection Interface

Selection Members

Microsoft.Office.Interop.Word Namespace