Used by RadRichTextEditor for presenting documents in "Web" LayoutMode (with no paging). See also DocumentPrintLayoutPresenter
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DocumentWebLayoutPresenter : DocumentPresenterBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IDocumentEditorPresenter, IDisposable, IUILayerContainer
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementContentControlDocumentPresenterBaseDocumentWebLayoutPresenter...
Implements:
Inherited Members
Constructors
Initializes the continuous-layout canvas, image adorner, and mouse-input handlers.
public DocumentWebLayoutPresenter()
Properties
Gets the input handler associated with the caret.
public CaretTextInputHandler CaretTextInputHandler { get; }
Gets or sets whether the caret can receive focus.
public override bool IsFocusable { get; set; }
Overrides:
Gets whether the caret currently has keyboard focus.
public override bool IsFocused { get; }
Overrides:
Gets the measured vertical content extent used to configure the owner's vertical scrollbar.
public override double ScrollableHeight { get; }
Overrides:
Gets the measured horizontal content extent used to configure the owner's horizontal scrollbar.
public override double ScrollableWidth { get; }
Overrides:
Gets the UI layers that render document adornments and decorations in web layout.
public UILayerStack UILayers { get; }
Implements:
Methods
Disposes the caret created for the active owner before releasing other managed resources.
protected override void DisposeManagedResources()
Overrides:
Attaches to the new document, rebuilds its UI layers, and restores caret tracking.
public override void DoOnDocumentChanged()
Overrides:
Detaches document event handlers and clears the current presenter UI before the owner document changes.
public override void DoOnDocumentChanging()
Overrides:
Gives focus to the caret when the owner editor is focusable.
public override void FocusCaret()
Overrides:
Returns one because web layout presents the document as a continuous, unpaginated view.
Returns bounds for the caret's current section, or an empty rectangle when no section is active.
Maps a point in the viewport to a position in the document.
public override DocumentPosition GetDocumentPositionFromViewPoint(Point viewPoint)
The point to map from the viewport.
Returns:The document position at the mapped point.
Overrides:
Gets the marker used to show the insertion location during a drag-and-drop operation.
protected override DropPositionMarker GetDropPositionMarker()
Overrides:
Converts a document position to viewport coordinates, accounting for scroll offsets and zoom.
public override Point GetViewPointFromDocumentPosition(DocumentPosition position)
The document position to convert.
Returns:The corresponding point in the viewport.
Overrides:
Moves the caret down by approximately one viewport height and scrolls to keep it visible.
public override void HandlePageDown()
Overrides:
Moves the caret up by approximately one viewport height and scrolls to keep it visible.
public override void HandlePageUp()
Overrides:
Hides the document caret.
public override void HideCaret()
Overrides:
Sets the presenter's default white background.
protected override void InitializeFields()
Overrides:
Checks whether a layer is allowed in web layout and, when hosted by another layer container, supported there as well.
Measures the document at the zoom-adjusted viewport width and updates visible layers and scrollbar ranges.
Initializes the drag-and-drop marker, creating it directly in WinForms and retrieving it from the template otherwise.
public override void OnApplyTemplate()
Overrides:
Initializes or reconnects caret and UI-layer state, then synchronizes adorner settings with the new owner.
protected override void OnOwnerChanged()
Overrides:
Detaches caret and format-painter event handlers from the current owner.
protected override void OnOwnerChanging()
Overrides:
Rebuilds the UI layers and updates the owner's layout.
public override void RecreateUI()
Overrides:
Scrolls to a note's endnote body; notes without a matching endnote layout are ignored in web layout.
public override void ScrollToNote(Note note)
The note whose endnote body should be brought into view.
Overrides:
Makes the document caret visible.
public override void ShowCaret()
Overrides:
Updates the caret's appearance and position to match the current document caret position.
public override void UpdateCaretSize()
Overrides:
Forces the proofing-decoration layer to refresh its visible text decorations.
public override void UpdateProofingTextDecoration()
Overrides:
Scrolls the viewport as needed to bring the line containing the document position into view.
public override void UpdateScrollOffsetFromDocumentPosition(DocumentPosition position)
The document position whose line should be made visible.
Overrides: