Displays one section-layout page or slice, including its caret and page-specific UI layers.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DocumentPagePresenter : ContentControl, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IUILayerContainer
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementContentControlDocumentPagePresenter...
Implements:
Inherited Members
Constructors
Creates the page canvas, caret, header/footer presenters, and mouse-input handlers.
public DocumentPagePresenter()
Properties
Gets the input handler of the caret.
public CaretTextInputHandler CaretTextInputHandler { get; }
Gets or sets whether the page's caret can receive focus.
public override bool IsFocusable { get; set; }
Overrides:
Gets the owner of this presenter.
public IDocumentEditorPresenterContainer Owner { get; }
Implements:
Gets the canvas element of this page.
public Panel PageCanvas { get; }
Gets or sets the child index of the section layout box displayed by this presenter.
public int SectionBoxIndex { get; set; }
Gets the UI layers of this page.
public UILayerStack UILayers { get; }
Implements:
Gets or sets the viewport rectangle of the presenter.
public RectangleF ViewportRectangle { get; set; }
Methods
Disposes the page's caret before releasing the remaining managed resources.
protected override void DisposeManagedResources()
Overrides:
Focuses the caret.
public void FocusCaret()
Returns the bounds of the area that should be invalidated when the element is invalidated.
public override Rectangle GetInvalidateBounds()
The bounds to invalidate.
Overrides:
Measures the owner document and updates the displayed section bounds and visible UI-layer viewport.
Hides the caret when the loaded page does not contain the document's current section.
protected override void OnLoaded()
Overrides:
Changes the current keyboard selection handler with the provided one.
public void SetKeyboardSelectionHandler(KeyboardSelectionHandler keyboardSelectionHandler)
The new keyboard selection handler.
Changes the current mouse selection handler with the provided one.
public void SetMouseSelectionHandler(MouseSelectionHandler mouseSelectionHandler)
The new mouse selection handler.
Updates the caret size according to the current span style.
public void UpdateCaretSize()