HeaderFooterCollection
Overview
HeaderFooterCollection is a class in Aspose.Words FOSS for .NET.
Inherits from: NodeCollection.
Provides typed access to HeaderFooter nodes of a Section.
This class provides 11 methods for working with HeaderFooterCollection objects in .NET programs.
Available methods include: Add, Clear, Contains, GetEnumerator, IndexOf, Insert, LinkToPrevious, Remove, RemoveAt, ToArray.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Properties: Count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the number of nodes in the collection. |
Methods
| Signature | Description |
|---|---|
LinkToPrevious(isLinkToPrevious: bool) | Links or unlinks all headers and footers to the corresponding headers and footers in the previous section. |
LinkToPrevious(headerFooterType: HeaderFooterType, isLinkToPrevious: bool) | Links or unlinks the specified header or footer to the corresponding header or footer in the previous section. |
ToArray() | Copies all HeaderFooters from the collection to a new array of HeaderFooters. |
Add(node: Node) | Adds a node to the end of the collection. |
Insert(index: int, node: Node) | Inserts a node into the collection at the specified index. |
Remove(node: Node) | Removes the node from the collection and from the document. |
RemoveAt(index: int) | Removes the node at the specified index from the collection and from the document. |
Clear() | Removes all nodes from this collection and from the document. |
Contains(node: Node) | Determines whether a node is in the collection. |
IndexOf(node: Node) | Returns the zero-based index of the specified node. |
GetEnumerator() | Provides a simple “foreach” style iteration over the collection of nodes. |