New to Telerik UI for WPFStart a free 30-day trial

Represents the user interface context for managing header and footer elements in a document.

Definition

Namespace:Telerik.Windows.Documents.UI

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class HeaderFooterUIContext

Inheritance: objectHeaderFooterUIContext

Constructors

C#
public HeaderFooterUIContext()

Properties

Forces focus to the footer area of the header/footer UI context.

C#
public bool ForceFooterFocus { get; }

Forces the focus on the header section of the document's header and footer UI context.

C#
public bool ForceHeaderFocus { get; }

Gets a value indicating whether the last right-click action came from a footer source.

C#
public bool IsFooterLastRightClickSource { get; }

Determines whether the header area of the document has been clicked.

C#
public bool IsHeaderClicked { get; }

Gets a value indicating whether the header is currently focused in the header/footer UI context.

C#
public bool IsHeaderFocused { get; }

Gets a value indicating whether the last click was on a header or footer element.

C#
public bool IsHeaderFooterLastClickSource { get; }

Gets a value indicating whether the last right-click source was the header.

C#
public bool IsHeaderLastRightClickSource { get; }

Gets the source of the last change made in the header or footer UI context.

C#
public HeaderFooterPresenterBase LastChangeSource { get; set; }

Gets the source of the last double-click event in the Header and Footer UI context.

C#
public IUILayerContainer LastDoubleClickSource { get; }

Methods

C#
protected virtual void OnFooterUpdateNeeded(FooterUpdateNeededEventArgs e)
Parameters:eFooterUpdateNeededEventArgs
C#
protected virtual void OnHeaderFooterEditorPropertiesSynchronizationNeeded()
C#
protected virtual void OnHeaderUpdateNeeded(HeaderUpdateNeededEventArgs e)
Parameters:eHeaderUpdateNeededEventArgs

Resets the source for double-click events in the header and footer user interface context.

C#
public void ResetDoubleClickSource()

Sets the double-click source for the specified UI layer container.

C#
public void SetDoubleClickSource(IUILayerContainer lastDoubleClickSource, bool isHeaderClicked)
Parameters:lastDoubleClickSourceIUILayerContainer

The UI layer container to which the double-click source is set.

isHeaderClickedbool

A boolean value indicating whether the header is clicked

Sets the last click source for the HeaderFooterUIContext.

C#
public void SetLastClickSource(bool isHeaderFooterLastClickSource)
Parameters:isHeaderFooterLastClickSourcebool

A boolean value indicating whether the last click source was initiated by the user.

Sets the last right-click source used in the Header/Footer UI context.

C#
public void SetLastRightClickSource(bool isHeaderFooterLastClickSource, bool isInHeader)
Parameters:isHeaderFooterLastClickSourcebool

Indicates whether the source is the previous one.

isInHeaderbool

Indicates whether the source is in header.

Updates the footer of a specified section within the document.

C#
public void UpdateFooter(Section section, HeaderFooterType footerType, Footer footer)
Parameters:sectionSection

The section in which the footer is to be updated.

footerTypeHeaderFooterType

The type of footer to update (e.g., first page, even pages, or odd pages).

footerFooter

The new footer object that will replace the existing footer.

Updates the header of the specified section with the provided header content.

C#
public void UpdateHeader(Section section, HeaderFooterType headerType, Header header)
Parameters:sectionSection

The section to update the header for.

headerTypeHeaderFooterType

The type of header or footer to be updated.

headerHeader

The header content to set for the specified section.

Events

C#
public event EventHandler<FooterUpdateNeededEventArgs> FooterUpdateNeeded
C#
public event EventHandler HeaderFooterEditorPropertiesSynchronizationNeeded
C#
public event EventHandler<HeaderUpdateNeededEventArgs> HeaderUpdateNeeded