Used by RadRichTextBox for presenting documents in "Web" LayoutMode (with no paging). See also DocumentPrintLayoutPresenter
Definition
Namespace:Telerik.Windows.Documents.UI
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class DocumentWebLayoutPresenter : DocumentPresenterBase, IDocumentEditorPresenter, IUILayerContainer
Inheritance: objectDocumentPresenterBaseDocumentWebLayoutPresenter
Derived Classes:
Implements:
Inherited Members
Constructors
public DocumentWebLayoutPresenter()
Properties
Gets or sets the CaretTextInputHandler that handles the input of the caret.
public CaretTextInputHandler CaretTextInputHandler { get; set; }
Gets a value indicating whether the document presenter is currently focused.
public override bool IsFocused { get; }
Overrides:
Gets the height of the scrollable area in the document web layout presenter.
public override double ScrollableHeight { get; }
Overrides:
Gets the width of the scrollable area in the Document Web Layout Presenter.
public override double ScrollableWidth { get; }
Overrides:
Gets the user interface layers associated with the document web layout presenter.
public UILayerStack UILayers { get; }
Implements:
Methods
protected override Size ArrangeOverride(Size finalSize)
Size
Executes actions when the document has changed in the web layout presenter.
public override void DoOnDocumentChanged()
Overrides:
Executes a set of actions when the document is about to change.
public override void DoOnDocumentChanging()
Overrides:
Sets the focus to the caret within the document web layout presenter.
public override void FocusCaret()
Overrides:
Retrieves the current page displayed in the document web layout presenter.
public override int GetCurrentPage()
The current page as an integer, representing the 1-based index of the page.
Overrides:
protected override Rect GetCurrentSectionBoundsInViewOverride()
Rect
Overrides:
Converts a specified point in the view to a point in the document coordinate system.
public override Point GetDocumentPointFromViewPoint(Point viewPoint)
A Point representing the point in the view to be converted.
Returns:Point
A Point representing the corresponding point in the document coordinate system.
Overrides:
Retrieves the document position corresponding to a specified point in the view.
public override DocumentPosition GetDocumentPositionFromViewPoint(Point viewPoint)
The point in the view for which to obtain the document position.
Returns:A DocumentPosition representing the document position that corresponds to the specified view point.
Overrides:
protected override DropPositionMarker GetDropPositionMarker()
Overrides:
Retrieves the viewpoint corresponding to a specific document position in the web layout.
public override Point GetViewPointFromDocumentPosition(DocumentPosition position)
The document position from which to retrieve the viewpoint.
Returns:Point
A Point representing the viewpoint in the document layout.
Overrides:
Handles the Page Down key event, scrolling the document view down by one page.
public override void HandlePageDown()
Overrides:
Handles the Page Up key event, allowing navigation to the previous page in the document view.
public override void HandlePageUp()
Overrides:
Hides the caret in the document web layout presenter.
public override void HideCaret()
Overrides:
protected override Size MeasureOverride(Size availableSize)
Size
Called when the template is applied to the DocumentWebLayoutPresenter. This method is responsible for initializing the presenter with the necessary templates and settings after they have been applied.
public override void OnApplyTemplate()
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
protected override void OnOwnerChanged()
Overrides:
protected override void OnOwnerChanging()
Overrides:
Recreates the user interface for the document web layout presenter. This method refreshes the visual representation of the document, ensuring that any changes to the document or its properties are reflected in the UI.
public override void RecreateUI()
Overrides:
Scrolls the view to the specified note within the document.
public override void ScrollToNote(Note note)
The note to which the view will scroll.
Overrides:
Displays the caret in the document web layout presenter.
public override void ShowCaret()
Overrides:
Updates the caret properties in the document web layout presenter.
public override void UpdateCaretProperties()
Overrides:
Updates the size of the caret in the document web layout presenter.
public override void UpdateCaretSize()
Overrides:
Updates the proofing text decoration in the document web layout presenter.
public override void UpdateProofingTextDecoration()
Overrides:
Updates the scroll offset in the document web layout presenter based on the specified document position.
public override void UpdateScrollOffsetFromDocumentPosition(DocumentPosition position)
The position in the document from which to update the scroll offset.
Overrides: