Represents a presenter for displaying document pages within the Telerik UI framework.
Definition
Namespace:Telerik.Windows.Documents.UI
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class DocumentPagePresenter : ContentControl, IUILayerContainer
Inheritance: objectDocumentPagePresenter
Implements:
Constructors
public DocumentPagePresenter()
Properties
Gets or sets the CaretTextInputHandler that handles the input of the caret.
public CaretTextInputHandler CaretTextInputHandler { get; set; }
Gets or sets the owner of the DocumentPagePresenter.
public IDocumentEditorPresenterContainer Owner { get; }
The owner of the DocumentPagePresenter, which can be used to access the associated document or parent component.
Implements:
PageCanvas
Panel
Gets the canvas element that represents the page in the document presenter.
public Panel PageCanvas { get; }
Gets the index of the SectionBox within the DocumentPagePresenter.
public int SectionBoxIndex { get; set; }
The zero-based index of the SectionBox. Returns -1 if the SectionBox does not exist.
Gets or sets the UI layers of the document page presenter.
public UILayerStack UILayers { get; }
A collection of UI layers that represent various elements in the document page, which can be manipulated for rendering and interaction purposes.
Implements:
Gets the rectangle that represents the current viewport area of the document page presenter.
public RectangleF ViewportRectangle { get; set; }
Methods
protected override Size ArrangeOverride(Size finalSize)
Size
Sets the focus to the caret in the document page presenter.
public void FocusCaret()
protected override Size MeasureOverride(Size availableSize)
Size
Sets the keyboard selection handler for the document page presenter.
public void SetKeyboardSelectionHandler(KeyboardSelectionHandler keyboardSelectionHandler)
The keyboard selection handler to be set, which is responsible for managing keyboard interactions for selection purposes.
Sets the mouse selection handler for the document page presenter.
public void SetMouseSelectionHandler(MouseSelectionHandler mouseSelectionHandler)
The mouse selection handler to be set.
Updates the size of the caret in the document page presenter.
public void UpdateCaretSize()