ClassHeaderFooterUIContext
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:
public class HeaderFooterUIContext
Inheritance: objectHeaderFooterUIContext
Constructors
HeaderFooterUIContext()
Declaration
public HeaderFooterUIContext()
Properties
ForceFooterFocus
Forces focus to the footer area of the header/footer UI context.
ForceHeaderFocus
Forces the focus on the header section of the document's header and footer UI context.
IsFooterLastRightClickSource
Gets a value indicating whether the last right-click action came from a footer source.
IsHeaderClicked
Determines whether the header area of the document has been clicked.
IsHeaderFocused
Gets a value indicating whether the header is currently focused in the header/footer UI context.
IsHeaderFooterLastClickSource
Gets a value indicating whether the last click was on a header or footer element.
Declaration
public bool IsHeaderFooterLastClickSource { get; }
Property Value
IsHeaderLastRightClickSource
Gets a value indicating whether the last right-click source was the header.
LastChangeSource
Gets the source of the last change made in the header or footer UI context.
Declaration
public HeaderFooterPresenterBase LastChangeSource { get; set; }
Property Value
LastDoubleClickSource
Gets the source of the last double-click event in the Header and Footer UI context.
Declaration
public IUILayerContainer LastDoubleClickSource { get; }
Property Value
Methods
OnFooterUpdateNeeded(FooterUpdateNeededEventArgs)
Declaration
protected virtual void OnFooterUpdateNeeded(FooterUpdateNeededEventArgs e)
Parameters
e
OnHeaderFooterEditorPropertiesSynchronizationNeeded()
Declaration
protected virtual void OnHeaderFooterEditorPropertiesSynchronizationNeeded()
OnHeaderUpdateNeeded(HeaderUpdateNeededEventArgs)
Declaration
protected virtual void OnHeaderUpdateNeeded(HeaderUpdateNeededEventArgs e)
Parameters
e
ResetDoubleClickSource()
Resets the source for double-click events in the header and footer user interface context.
Declaration
public void ResetDoubleClickSource()
SetDoubleClickSource(IUILayerContainer, bool)
Sets the double-click source for the specified UI layer container.
Declaration
public void SetDoubleClickSource(IUILayerContainer lastDoubleClickSource, bool isHeaderClicked)
Parameters
lastDoubleClickSource
The UI layer container to which the double-click source is set.
isHeaderClicked
A boolean value indicating whether the header is clicked
SetLastClickSource(bool)
Sets the last click source for the HeaderFooterUIContext.
Declaration
public void SetLastClickSource(bool isHeaderFooterLastClickSource)
Parameters
isHeaderFooterLastClickSource
A boolean value indicating whether the last click source was initiated by the user.
SetLastRightClickSource(bool, bool)
Sets the last right-click source used in the Header/Footer UI context.
UpdateFooter(Section, HeaderFooterType, Footer)
Updates the footer of a specified section within the document.
Declaration
public void UpdateFooter(Section section, HeaderFooterType footerType, Footer footer)
Parameters
section
The section in which the footer is to be updated.
footerType
The type of footer to update (e.g., first page, even pages, or odd pages).
footer
The new footer object that will replace the existing footer.
UpdateHeader(Section, HeaderFooterType, Header)
Updates the header of the specified section with the provided header content.
Declaration
public void UpdateHeader(Section section, HeaderFooterType headerType, Header header)
Parameters
section
The section to update the header for.
headerType
The type of header or footer to be updated.
header
The header content to set for the specified section.
Events
FooterUpdateNeeded
Declaration
public event EventHandler<FooterUpdateNeededEventArgs> FooterUpdateNeeded
Event Value
HeaderFooterEditorPropertiesSynchronizationNeeded
Declaration
public event EventHandler HeaderFooterEditorPropertiesSynchronizationNeeded
Event Value
HeaderUpdateNeeded
Declaration
public event EventHandler<HeaderUpdateNeededEventArgs> HeaderUpdateNeeded
Event Value