Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class HeaderFooterPresenterBase : FrameworkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementHeaderFooterPresenterBase...
Derived Classes:
Implements:
Inherited Members
Constructors
public HeaderFooterPresenterBase()
Properties
protected SectionLayoutBox AssociatedSectionBox { get; }
Gets the inner RadRichTextBox of this presenter.
protected RadRichTextBox BodyRichTextBox { get; }
Gets the type of editor this presenter is.
public abstract DocumentEditorType DocumentEditorType { get; }
Gets or sets a value indicating whether the presenter is currently editing the document header and footer.
protected bool IsInEditHeaderFooterMode { get; set; }
protected Rectangle MouseClickRectangle { get; }
public Rectangle OveralyRectangle { get; }
protected IUILayerContainer Owner { get; }
protected IDocumentEditorPresenterContainer OwnerDocumentEditor { get; }
protected StackLayoutElement WrappingStackPanel { get; }
Methods
Removes all references and unsubscribe from events.
public void CleanUp()
Gets the content of the presenter.
protected abstract RadDocument GetBody()
A RadDocument with the contents of the presenter.
Gets the height of the presenter.
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
protected override void InitializeFields()
Overrides:
Marks that the inner RadRichTextBox should be invalidated.
public void InvalidateBody()
public override void OnApplyTemplate()
Overrides:
protected override void OnBoundsChanged(RadPropertyChangedEventArgs e)
Overrides:
Sets the provided section layout box as the associated to the presenter.
protected void SetAssociatedSectionBox(SectionLayoutBox value, bool delayed)
The section layout box.
delayedboolDetermines if the any updates should be executed with a delay.
Sets the provided document to the inner RadRichTextBox without notifications.
protected void SetDocumentSilently(RadDocument document)
The document to set.
Sets the height of the presenter.
Updates the content of the resenter with the associated section.
public void Update(SectionLayoutBox sectionBox, bool isInEditHeaderFooterMode, bool shouldFocus, bool delayed)
The section box to associate with.
isInEditHeaderFooterModeboolDetermines whether to enter edit mode.
shouldFocusboolDetermines whether the inner RadRichTextBox should be focused.
delayedboolDefines whether the update shoudl be executed with a slight delay.
Updates the content of the resenter with the associated section.
public void Update(SectionLayoutBox associatedSectionBox, bool isInEditHeaderFooterMode, bool shouldFocus)
The section box to associate with.
isInEditHeaderFooterModeboolDetermines whether to enter edit mode.
shouldFocusboolDetermines whether the inner RadRichTextBox should be focused.
Updates the inner RadRichTextBox margins from the owner RadRichTextBox.
protected abstract void UpdateBodyMargin()
Updates the onwer editor header/footer editing context with the provided one.
protected abstract void UpdateOwnerEditingContext(HeaderFooterEditingContext context)
Updates the owner header or footer UI context of the pwner editor.
protected abstract void UpdateOwnerUIContext()
Updates the source RadRichTextBox with the content from this presenter.
protected abstract void UpdateSource()