New to Telerik Document ProcessingStart a free 30-day trial

Manages a type-safe collection of headers or footers for a Section, coordinating Default, Even, and First instances based on page layout settings.

Definition

Namespace:Telerik.Windows.Documents.Flow.Model

Assembly:Telerik.Windows.Documents.Flow.dll

Type Parameters:

T

Syntax:

C#
public abstract class HeadersFootersBase<T> where T : HeaderFooterBase

Inheritance: objectHeadersFootersBase<T>

Derived Classes: FootersHeaders

Methods

Creates and adds a default Header or Footer for all pages, and returns the new instance.

C#
public T Add()
Returns:

T

The added Header or Footer.

Creates and adds a Header or Footer for the specified page type, and returns the new instance.

Visualization of non-default headers or footers depends additionally on and HasDifferentEvenOddPageHeadersFooters properties.

C#
public T Add(HeaderFooterType headerFooterType)
Parameters:headerFooterTypeHeaderFooterType

Type of the header or footer.

Returns:

T

The added Header or Footer.

Creates an instance of Header or Footer class.

C#
protected abstract T CreateHeaderFooterInstance()
Returns:

T

The new Header or Footer instance.

Removes the Header or Footer of the specified page type from the collection.

C#
public void Remove(HeaderFooterType headerFooterType)
Parameters:headerFooterTypeHeaderFooterType

Type of the header footer.

Properties

Gets the header or footer displayed on all pages except first and even pages when those are specifically defined.

C#
public T Default { get; }
Property Value:

The default header or footer.

Gets the document containing this header or footer collection.

C#
public RadFlowDocument Document { get; }
Property Value:

The document.

Gets the header or footer displayed on even-numbered pages when different even/odd headers are enabled in the document.

Visualization of this header or footer depends additionally on property.

C#
public T Even { get; }
Property Value:

The even header or footer.

Gets the header or footer displayed on the first page of the section when a different first-page header is enabled.

Visualization of this header or footer depends additionally on HasDifferentEvenOddPageHeadersFooters property.

C#
public T First { get; }
Property Value:

The first header or footer.

Gets the section that owns this header or footer collection.

C#
public Section Section { get; }
Property Value:

The owner section.