The HeaderFooter class does not have a property which provides the type of header or footer it is.
The API defines an enumeration: HeaderFooterType but this is not a property of each instance of a HeaderFooter object, according to the API: HeaderFooter
It would be useful to be able to determine the type when iterating through the HeadersFooters as a collection.