Class
HeaderFooterPresenterBase

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:

cs-api-definition
public abstract class HeaderFooterPresenterBase : Control

Inheritance: objectHeaderFooterPresenterBase

Derived Classes: FooterPresenterHeaderPresenter

Constructors

HeaderFooterPresenterBase()

Initializes a new instance of the HeaderFooterPresenterBase class.

Declaration

cs-api-definition
public HeaderFooterPresenterBase()

HeaderFooterPresenterBase(IUILayerContainer)

Initializes a new instance of the HeaderFooterPresenterBase class.

Declaration

cs-api-definition
public HeaderFooterPresenterBase(IUILayerContainer owner)

Parameters

owner

IUILayerContainer

The owner element implementing IUILayerContainer.

Properties

AssociatedSectionBox

Declaration

cs-api-definition
protected SectionLayoutBox AssociatedSectionBox { get; }

Property Value

SectionLayoutBox

BodyRichTextBox

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
protected bool IsInEditHeaderFooterMode { get; set; }

Property Value

bool

MouseClickRectangle

Declaration

cs-api-definition
protected Rectangle MouseClickRectangle { get; }

Property Value

Rectangle

Owner

Declaration

cs-api-definition
protected IUILayerContainer Owner { get; }

Property Value

IUILayerContainer

OwnerDocumentEditor

Declaration

cs-api-definition
protected IDocumentEditorPresenterContainer OwnerDocumentEditor { get; }

Property Value

IDocumentEditorPresenterContainer

WrappingStackPanel

Declaration

cs-api-definition
protected StackPanel WrappingStackPanel { get; }

Property Value

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

cs-api-definition
public void CleanUp()

GetBody()

Declaration

cs-api-definition
protected abstract RadDocument GetBody()

Returns

RadDocument

GetUIHeight()

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

Declaration

cs-api-definition
public abstract double GetUIHeight()

Returns

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

cs-api-definition
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

cs-api-definition
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 event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

SetAssociatedSectionBox(SectionLayoutBox, bool)

Declaration

cs-api-definition
protected void SetAssociatedSectionBox(SectionLayoutBox value, bool delayed)

Parameters

value

SectionLayoutBox

delayed

bool

SetDocumentSilently(RadDocument)

Declaration

cs-api-definition
protected void SetDocumentSilently(RadDocument document)

Parameters

document

RadDocument

SetMaxHeight(float)

Sets the maximum height for the header or footer presenter.

Declaration

cs-api-definition
public void SetMaxHeight(float maxHeight)

Parameters

maxHeight

float

The maximum height to set, in pixels.

SetOwner(IUILayerContainer)

Sets the owner of the HeaderFooterPresenterBase instance.

Declaration

cs-api-definition
public void SetOwner(IUILayerContainer owner)

Parameters

owner

IUILayerContainer

The IUILayerContainer that will be set as the owner.

Update(SectionLayoutBox, bool, bool)

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

Declaration

cs-api-definition
public void Update(SectionLayoutBox associatedSectionBox, bool isInEditHeaderFooterMode, bool shouldFocus)

Parameters

associatedSectionBox

SectionLayoutBox

The layout box that represents the section to update.

isInEditHeaderFooterMode

bool

A boolean indicating whether the header or footer are being edited

shouldFocus

bool

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

Update(SectionLayoutBox, bool, bool, bool)

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

Declaration

cs-api-definition
public void Update(SectionLayoutBox associatedSectionBox, bool isInEditHeaderFooterMode, bool shouldFocus, bool delayed)

Parameters

associatedSectionBox

SectionLayoutBox

The layout box that represents the section to update.

isInEditHeaderFooterMode

bool

A boolean indicating whether the header or footer are being edited

shouldFocus

bool

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

delayed

bool

A boolean indicating whether the presenter update should be delayed

UpdateBodyMargin()

Declaration

cs-api-definition
protected abstract void UpdateBodyMargin()

UpdateOwnerEditingContext(HeaderFooterEditingContext)

Declaration

cs-api-definition
protected abstract void UpdateOwnerEditingContext(HeaderFooterEditingContext context)

Parameters

context

HeaderFooterEditingContext

UpdateOwnerUIContext()

Declaration

cs-api-definition
protected abstract void UpdateOwnerUIContext()

UpdateSource()

Declaration

cs-api-definition
protected abstract void UpdateSource()