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

Represents the base class for presenting header and footer elements in a document.

Definition

Namespace:Telerik.Windows.Documents.UI

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public abstract class HeaderFooterPresenterBase : Control

Inheritance: objectHeaderFooterPresenterBase

Derived Classes: FooterPresenterHeaderPresenter

Constructors

Initializes a new instance of the HeaderFooterPresenterBase class.

C#
public HeaderFooterPresenterBase()

Initializes a new instance of the HeaderFooterPresenterBase class.

C#
public HeaderFooterPresenterBase(IUILayerContainer owner)
Parameters:ownerIUILayerContainer

The owner element implementing IUILayerContainer.

Properties

C#
protected SectionLayoutBox AssociatedSectionBox { get; }
C#
protected RadRichTextBox BodyRichTextBox { get; }

Gets or sets the type of the document editor used by the header and footer presenter.

C#
public abstract DocumentEditorType DocumentEditorType { get; }
Property Value:

The type of the document editor. This value determines the editing capabilities available for the header and footer sections.

C#
protected bool IsInEditHeaderFooterMode { get; set; }
C#
protected Rectangle MouseClickRectangle { get; }
C#
protected IUILayerContainer Owner { get; }
C#
protected IDocumentEditorPresenterContainer OwnerDocumentEditor { get; }
C#
protected StackPanel WrappingStackPanel { get; }

Methods

Cleans up any resources used by the HeaderFooterPresenterBase instance. This method is responsible for releasing unmanaged resources and performing other cleanup operations.

C#
public void CleanUp()
C#
protected abstract RadDocument GetBody()
Returns:

RadDocument

Retrieves the height of the UI element associated with the header/footer presenter.

C#
public abstract double GetUIHeight()
Returns:

double

A floating-point number representing the height of the UI in pixels.

Invalidates the body of the header and footer presenter, forcing a complete re-render of the content.

C#
public void InvalidateBody()
Remarks:

This method should be called when there are changes in the header or footer content that require the body to be updated.

Invoked whenever the template is applied, allowing for custom initialization logic when the control's visual tree is created.

C#
public override void OnApplyTemplate()
Remarks:

This method is typically overridden in derived classes to add custom behavior when the template is applied.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

C#
protected void SetAssociatedSectionBox(SectionLayoutBox value, bool delayed)
Parameters:valueSectionLayoutBoxdelayedbool
C#
protected void SetDocumentSilently(RadDocument document)
Parameters:documentRadDocument

Sets the maximum height for the header or footer presenter.

C#
public void SetMaxHeight(float maxHeight)
Parameters:maxHeightfloat

The maximum height to set, in pixels.

Sets the owner of the HeaderFooterPresenterBase instance.

C#
public void SetOwner(IUILayerContainer owner)
Parameters:ownerIUILayerContainer

The IUILayerContainer that will be set as the owner.

Updates the header and footer presenter with the specified layout box and visibility settings.

C#
public void Update(SectionLayoutBox associatedSectionBox, bool isInEditHeaderFooterMode, bool shouldFocus, bool delayed)
Parameters:associatedSectionBoxSectionLayoutBox

The layout box that represents the section to update.

isInEditHeaderFooterModebool

A boolean indicating whether the header or footer are being edited

shouldFocusbool

A boolean indicating whether the footer or the header should be focused.

delayedbool

A boolean indicating whether the presenter update should be delayed

Updates the header and footer presentation for the specified section layout box.

C#
public void Update(SectionLayoutBox associatedSectionBox, bool isInEditHeaderFooterMode, bool shouldFocus)
Parameters:associatedSectionBoxSectionLayoutBox

The layout box that represents the section to update.

isInEditHeaderFooterModebool

A boolean indicating whether the header or footer are being edited

shouldFocusbool

A boolean indicating whether the footer or the header should be focused.

C#
protected abstract void UpdateBodyMargin()
C#
protected abstract void UpdateOwnerEditingContext(HeaderFooterEditingContext context)
Parameters:contextHeaderFooterEditingContext
C#
protected abstract void UpdateOwnerUIContext()
C#
protected abstract void UpdateSource()