Presents a paginated document through the page presenters currently visible in the scrollable viewport.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DocumentPrintLayoutPresenter : DocumentPresenterBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IDocumentEditorPresenter, IDisposable
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementContentControlDocumentPresenterBaseDocumentPrintLayoutPresenter...
Implements:
Inherited Members
Constructors
Initializes the page canvas, layout manager, and print-layout adornment state.
public DocumentPrintLayoutPresenter()
Properties
Gets the caret of the page presenter associated with the current caret or selection, or null when none is visible.
public Caret Caret { get; }
Gets a value indicating whether this presenter is focused.
public override bool IsFocusable { get; set; }
Overrides:
Gets or sets a value indicating whether this presenter can receive focus.
public override bool IsFocused { get; }
Overrides:
Gets or sets value corresponding to the margins between child page-presenters.
public SizeF PagePresentersMargin { get; set; }
Gets the height of the scroll bar view.
public override double ScrollableHeight { get; }
Overrides:
Gets the width of the scroll bar view.
public override double ScrollableWidth { get; }
Overrides:
Methods
Called after the owner document is changed.
public override void DoOnDocumentChanged()
Overrides:
Called before the owner document is changed.
public override void DoOnDocumentChanging()
Overrides:
Focuses the caret.
public override void FocusCaret()
Overrides:
Gets the number of the current page.
public override int GetCurrentPage()
An integer number representing the number of the current page.
Overrides:
This method supports control infrastructure and is not intended for use directly from your code.
Gets a DocumentPosition from a Point in the viewport.
public override DocumentPosition GetDocumentPositionFromViewPoint(Point viewPoint)
Point containing X and Y coordinates in the viewport.
Returns:A DocumentPosition in the document.
Overrides:
Gets the drop marker for a drag and drop operation.
protected override DropPositionMarker GetDropPositionMarker()
A drop position marker.
Overrides:
Gets the currently focused page presenter.
public DocumentPagePresenter GetFocusedPresenter()
A page presenter for the currently focused page.
Gets a Point in the document from a DocumentPosition.
public override Point GetViewPointFromDocumentPosition(DocumentPosition position)
A DocumentPosition in the document.
Returns:A Point in the document.
Overrides:
Called when the caret is moved a page down.
public override void HandlePageDown()
Overrides:
Called when the caret is moved a page up.
public override void HandlePageUp()
Overrides:
Hides the caret.
public override void HideCaret()
Overrides:
Called when an Invalidate arrange is made.
protected override void InvalidatePresenterArrangeOverride()
Overrides:
Called when an Invalidate measure is made.
protected override void InvalidatePresenterMeasureOverride()
Overrides:
Measures the document, lays out visible page presenters, and resolves unbounded viewport dimensions.
Called before the owner RadRichTextBox is cahnged.
protected override void OnOwnerChanging()
Overrides:
Forces a recreation of all UI elements.
public override void RecreateUI()
Overrides:
Sets a value indicating whether the caret is blinking or not.
protected override void SetCaretBlinking(bool isBlinking)
true if the caret will be blinking, otherwise false.
Overrides:
Shows the caret.
public override void ShowCaret()
Overrides:
Updates the caret size.
public override void UpdateCaretSize()
Overrides:
Forces an update of the proofing UI layer.
public override void UpdateProofingTextDecoration()
Overrides:
Scrolls the viewport so that the provided DocumentPosition is brought into view.
public override void UpdateScrollOffsetFromDocumentPosition(DocumentPosition documentPosition)
The position to scroll to.
Overrides: