ClassDocumentPrintLayoutPresenter
Used in RadRichTextBox for presenting documents in "Print" LayoutMode. See also DocumentWebLayoutPresenter
Definition
Namespace:Telerik.Windows.Documents.UI
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class DocumentPrintLayoutPresenter : DocumentPresenterBase, IDocumentEditorPresenter
Inheritance: objectDocumentPresenterBaseDocumentPrintLayoutPresenter
Implements:
Inherited Members
Constructors
DocumentPrintLayoutPresenter()
Declaration
public DocumentPrintLayoutPresenter()
Properties
IsFocused
Gets a value indicating whether the document print layout presenter currently has focus.
PagePresentersMargin
Gets or sets value corresponding to the margins between child page-presenters.
ScrollableHeight
Gets the height of the scrollable area within the document print layout presenter.
Declaration
public override double ScrollableHeight { get; }
Property Value
Overrides
ScrollableWidth
Gets the width available for scrolling in the document print layout presenter.
Declaration
public override double ScrollableWidth { get; }
Property Value
Overrides
Methods
ArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
finalSize
Size
Returns
Size
DoOnDocumentChanged()
Executes actions that need to take place when the document has changed.
Declaration
public override void DoOnDocumentChanged()
Overrides
DoOnDocumentChanging()
Executes actions necessary when the document is changing.
Declaration
public override void DoOnDocumentChanging()
Overrides
Remarks
This method is typically called to handle any updates or changes required before the document transitions to a new state.
FocusCaret()
Sets the focus to the caret in the document print layout presenter.
Declaration
public override void FocusCaret()
Overrides
GetCurrentPage()
Retrieves the current page number in the document print layout presenter.
Declaration
public override int GetCurrentPage()
Returns
The current page number as an integer.
Overrides
GetCurrentSectionBoundsInViewOverride()
This method supports control infrastructure and is not intended for use directly from your code.
Declaration
protected override Rect GetCurrentSectionBoundsInViewOverride()
Returns
Rect
Overrides
GetDocumentPointFromViewPoint(Point)
Converts a specified view point in the user interface to a corresponding document point for printing purposes.
Declaration
public override Point GetDocumentPointFromViewPoint(Point viewPoint)
Parameters
viewPoint
Point
The point in the UI that needs to be converted to a document point.
Returns
Point
Returns a Point representing the corresponding document point.
Overrides
GetDocumentPositionFromViewPoint(Point)
Retrieves the document position corresponding to a specified view point.
Declaration
public override DocumentPosition GetDocumentPositionFromViewPoint(Point viewPoint)
Parameters
viewPoint
Point
The point in the view from which to calculate the document position.
Returns
A DocumentPosition representing the document position at the specified view point.
Overrides
GetDropPositionMarker()
Declaration
protected override DropPositionMarker GetDropPositionMarker()
Returns
Overrides
GetViewPointFromDocumentPosition(DocumentPosition)
Retrieves the viewpoint corresponding to the specified document position in the print layout presenter.
Declaration
public override Point GetViewPointFromDocumentPosition(DocumentPosition position)
Parameters
position
The document position for which the viewpoint is to be retrieved.
Returns
Point
The viewpoint associated with the given document position.
Overrides
HandlePageDown()
Handles the Page Down command in the Document Print Layout Presenter. This method facilitates navigation through the document by scrolling down one page at a time when the Page Down key is pressed.
Declaration
public override void HandlePageDown()
Overrides
HandlePageUp()
Handles the Page Up key press event to navigate to the previous page in the document layout.
Declaration
public override void HandlePageUp()
Overrides
HideCaret()
Hides the caret in the document print layout presenter.
Declaration
public override void HideCaret()
Overrides
InvalidatePresenterArrangeOverride()
Declaration
protected override void InvalidatePresenterArrangeOverride()
Overrides
InvalidatePresenterMeasureOverride()
Declaration
protected override void InvalidatePresenterMeasureOverride()
Overrides
MeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSize
Size
Returns
Size
OnApplyTemplate()
Executes the logic required when a template is applied to the DocumentPrintLayoutPresenter.
Declaration
public override void OnApplyTemplate()
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnOwnerChanging()
Declaration
protected override void OnOwnerChanging()
Overrides
RecreateUI()
Recreates the user interface for the document print layout presenter.
Declaration
public override void RecreateUI()
Overrides
Remarks
This method refreshes and rebuilds the visual representation of the document in the print layout mode, ensuring that all changes to the document are accurately reflected in the UI.
ScrollToNote(Note)
Scrolls the document view to the specified note.
Declaration
public override void ScrollToNote(Note note)
Parameters
note
Overrides
SetCaretBlinking(bool)
Declaration
protected override void SetCaretBlinking(bool isBlinking)
Parameters
isBlinking
Overrides
ShowCaret()
Displays the caret in the document print layout presenter.
Declaration
public override void ShowCaret()
Overrides
UpdateCaretProperties()
Updates the properties of the caret in the document print layout presenter.
Declaration
public override void UpdateCaretProperties()
Overrides
UpdateCaretSize()
Updates the size of the caret in the document print layout presenter.
Declaration
public override void UpdateCaretSize()
Overrides
UpdateProofingTextDecoration()
Updates the text decoration for proofing in the document print layout presenter.
Declaration
public override void UpdateProofingTextDecoration()
Overrides
UpdateScrollOffsetFromDocumentPosition(DocumentPosition)
Updates the scroll offset based on the specified document position.
Declaration
public override void UpdateScrollOffsetFromDocumentPosition(DocumentPosition documentPosition)
Parameters
documentPosition
The document position used to update the scroll offset.
Overrides