ClassHeaderFooterPresenterBase
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
HeaderFooterPresenterBase()
Declaration
public HeaderFooterPresenterBase()
HeaderFooterPresenterBase(IUILayerContainer)
Declaration
public HeaderFooterPresenterBase(IUILayerContainer owner)
Parameters
owner
Properties
AssociatedSectionBox
Declaration
protected SectionLayoutBox AssociatedSectionBox { get; }
Property Value
BodyRichTextBox
Gets the inner RadRichTextBox of this presenter.
Declaration
protected RadRichTextBox BodyRichTextBox { get; }
Property Value
DocumentEditorType
Gets the type of editor this presenter is.
Declaration
public abstract DocumentEditorType DocumentEditorType { get; }
Property Value
IsInEditHeaderFooterMode
Gets or sets a value indicating whether the presenter is currently editing the document header and footer.
Declaration
protected bool IsInEditHeaderFooterMode { get; set; }
Property Value
MouseClickRectangle
Declaration
protected Rectangle MouseClickRectangle { get; }
Property Value
Owner
Declaration
protected IUILayerContainer Owner { get; }
Property Value
OwnerDocumentEditor
Declaration
protected IDocumentEditorPresenterContainer OwnerDocumentEditor { get; }
Property Value
WrappingStackPanel
Declaration
protected StackLayoutElement WrappingStackPanel { get; }
Property Value
Methods
CleanUp()
Removes all references and unsubscribe from events.
Declaration
public void CleanUp()
GetBody()
Gets the content of the presenter.
Declaration
protected abstract RadDocument GetBody()
Returns
A RadDocument with the contents of the presenter.
GetUIHeight()
Gets the height of the presenter.
Declaration
public abstract double GetUIHeight()
Returns
The height of the presenter.
InitializeFields()
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.
Declaration
protected override void InitializeFields()
Overrides
InvalidateBody()
Marks that the inner RadRichTextBox should be invalidated.
Declaration
public void InvalidateBody()
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
Overrides
OnBoundsChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnBoundsChanged(RadPropertyChangedEventArgs e)
Parameters
e
Overrides
SetAssociatedSectionBox(SectionLayoutBox, bool)
Sets the provided section layout box as the associated to the presenter.
Declaration
protected void SetAssociatedSectionBox(SectionLayoutBox value, bool delayed)
Parameters
value
The section layout box.
delayed
Determines if the any updates should be executed with a delay.
SetDocumentSilently(RadDocument)
Sets the provided document to the inner RadRichTextBox without notifications.
Declaration
protected void SetDocumentSilently(RadDocument document)
Parameters
document
The document to set.
SetMaxHeight(float)
Sets the height of the presenter.
Declaration
public void SetMaxHeight(float maxHeight)
Parameters
maxHeight
The new height.
Update(SectionLayoutBox, bool, bool)
Updates the content of the resenter with the associated section.
Declaration
public void Update(SectionLayoutBox associatedSectionBox, bool isInEditHeaderFooterMode, bool shouldFocus)
Parameters
associatedSectionBox
The section box to associate with.
isInEditHeaderFooterMode
Determines whether to enter edit mode.
shouldFocus
Determines whether the inner RadRichTextBox should be focused.
Update(SectionLayoutBox, bool, bool, bool)
Updates the content of the resenter with the associated section.
Declaration
public void Update(SectionLayoutBox sectionBox, bool isInEditHeaderFooterMode, bool shouldFocus, bool delayed)
Parameters
sectionBox
The section box to associate with.
isInEditHeaderFooterMode
Determines whether to enter edit mode.
shouldFocus
Determines whether the inner RadRichTextBox should be focused.
delayed
Defines whether the update shoudl be executed with a slight delay.
UpdateBodyMargin()
Updates the inner RadRichTextBox margins from the owner RadRichTextBox.
Declaration
protected abstract void UpdateBodyMargin()
UpdateOwnerEditingContext(HeaderFooterEditingContext)
Updates the onwer editor header/footer editing context with the provided one.
Declaration
protected abstract void UpdateOwnerEditingContext(HeaderFooterEditingContext context)
Parameters
context
UpdateOwnerUIContext()
Updates the owner header or footer UI context of the pwner editor.
Declaration
protected abstract void UpdateOwnerUIContext()
UpdateSource()
Updates the source RadRichTextBox with the content from this presenter.
Declaration
protected abstract void UpdateSource()