HeadersFooters.Item Property
Returns a header or footer in a range or selection.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
ReadOnly Default Property Item ( _
Index As WdHeaderFooterIndex _
) As HeaderFooter
Get
'Usage
Dim instance As HeadersFooters
Dim Index As WdHeaderFooterIndex
Dim value As HeaderFooter
value = instance(Index)
HeaderFooter this[
WdHeaderFooterIndex Index
] { get; }
Parameters
- Index
Type: Microsoft.Office.Interop.Word.WdHeaderFooterIndex
Required WdHeaderFooterIndex. A constant that specifies the header or footer in the selection. Can be one of the following WdHeaderFooterIndex constants:
wdHeaderFooterEvenPages
wdHeaderFooterFirstPage
wdHeaderFooterPrimary
Property Value
Type: Microsoft.Office.Interop.Word.HeaderFooter