skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class HeaderFooterPresenterBase

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

Inheritance
System.Object
HeaderFooterPresenterBase
FooterPresenter
HeaderPresenter
Namespace: Telerik.Windows.Documents.UI
Assembly: Telerik.Windows.Controls.RichTextBox.dll

Syntax

public abstract class HeaderFooterPresenterBase : Control

Constructors

HeaderFooterPresenterBase()

Initializes a new instance of the HeaderFooterPresenterBase class.

Declaration
public HeaderFooterPresenterBase()

HeaderFooterPresenterBase(IUILayerContainer)

Initializes a new instance of the HeaderFooterPresenterBase class.

Declaration
public HeaderFooterPresenterBase(IUILayerContainer owner)
Parameters
IUILayerContainer owner

The owner element implementing IUILayerContainer.

Properties

AssociatedSectionBox

Declaration
protected SectionLayoutBox AssociatedSectionBox { get; }
Property Value
SectionLayoutBox

BodyRichTextBox

Declaration
protected RadRichTextBox BodyRichTextBox { get; }
Property Value
RadRichTextBox

DocumentEditorType

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

Declaration
public abstract DocumentEditorType DocumentEditorType { get; }
Property Value
DocumentEditorType

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

IsInEditHeaderFooterMode

Declaration
protected bool IsInEditHeaderFooterMode { get; set; }
Property Value
System.Boolean

MouseClickRectangle

Declaration
protected Rectangle MouseClickRectangle { get; }
Property Value
System.Windows.Shapes.Rectangle

Owner

Declaration
protected IUILayerContainer Owner { get; }
Property Value
IUILayerContainer

OwnerDocumentEditor

Declaration
protected IDocumentEditorPresenterContainer OwnerDocumentEditor { get; }
Property Value
IDocumentEditorPresenterContainer

WrappingStackPanel

Declaration
protected StackPanel WrappingStackPanel { get; }
Property Value
System.Windows.Controls.StackPanel

Methods

CleanUp()

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

Declaration
public void CleanUp()

GetBody()

Declaration
protected abstract RadDocument GetBody()
Returns
RadDocument

GetUIHeight()

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

Declaration
public abstract double GetUIHeight()
Returns
System.Double

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

InvalidateBody()

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

Declaration
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.

OnApplyTemplate()

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

Declaration
public override void OnApplyTemplate()
Remarks

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

OnInitialized(EventArgs)

Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

The System.Windows.RoutedEventArgs that contains the event data.

SetAssociatedSectionBox(SectionLayoutBox, Boolean)

Declaration
protected void SetAssociatedSectionBox(SectionLayoutBox value, bool delayed)
Parameters
SectionLayoutBox value

System.Boolean delayed

SetDocumentSilently(RadDocument)

Declaration
protected void SetDocumentSilently(RadDocument document)
Parameters
RadDocument document

SetMaxHeight(Single)

Sets the maximum height for the header or footer presenter.

Declaration
public void SetMaxHeight(float maxHeight)
Parameters
System.Single maxHeight

The maximum height to set, in pixels.

SetOwner(IUILayerContainer)

Sets the owner of the HeaderFooterPresenterBase instance.

Declaration
public void SetOwner(IUILayerContainer owner)
Parameters
IUILayerContainer owner

The IUILayerContainer that will be set as the owner.

Update(SectionLayoutBox, Boolean, Boolean)

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

Declaration
public void Update(SectionLayoutBox associatedSectionBox, bool isInEditHeaderFooterMode, bool shouldFocus)
Parameters
SectionLayoutBox associatedSectionBox

The layout box that represents the section to update.

System.Boolean isInEditHeaderFooterMode

A boolean indicating whether the header or footer are being edited

System.Boolean shouldFocus

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

Update(SectionLayoutBox, Boolean, Boolean, Boolean)

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

Declaration
public void Update(SectionLayoutBox associatedSectionBox, bool isInEditHeaderFooterMode, bool shouldFocus, bool delayed)
Parameters
SectionLayoutBox associatedSectionBox

The layout box that represents the section to update.

System.Boolean isInEditHeaderFooterMode

A boolean indicating whether the header or footer are being edited

System.Boolean shouldFocus

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

System.Boolean delayed

A boolean indicating whether the presenter update should be delayed

UpdateBodyMargin()

Declaration
protected abstract void UpdateBodyMargin()

UpdateOwnerEditingContext(HeaderFooterEditingContext)

Declaration
protected abstract void UpdateOwnerEditingContext(HeaderFooterEditingContext context)
Parameters
HeaderFooterEditingContext context

UpdateOwnerUIContext()

Declaration
protected abstract void UpdateOwnerUIContext()

UpdateSource()

Declaration
protected abstract void UpdateSource()

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.