Renders the document and its supported UI layers for a print page.
Definition
Namespace:Telerik.WinForms.Documents.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class DocumentPrintPresenter : ContentControl, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IDocumentEditorPresenter, IDisposable, IUILayerContainer
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementContentControlDocumentPrintPresenter...
Implements:
Inherited Members
Constructors
Initializes a print presenter with the specified page settings and creates its page canvas.
public DocumentPrintPresenter(PrintSettings settings)
The settings used by the presenter for page layout and print options.
Properties
Reports this presenter as focusable; assigning a value does not change the result.
public override bool IsFocusable { get; set; }
Overrides:
Gets or sets whether the presenter is rendering a print page rather than its full document view.
public bool IsPrinting { get; set; }
Gets or sets the editor whose document and visual layers are rendered for printing.
public RadRichTextBox Owner { get; set; }
Implements:
Gets or sets the print options; Silverlight printing uses the configured document name for the print job.
public PrintSettings Settings { get; set; }
Gets the UI layers rendered with the current print page.
public UILayerStack UILayers { get; }
Implements:
Methods
Rebuilds the print-page UI layers after the owner document changes.
public void DoOnDocumentChanged()
Implements:
Clears the current UI layers before the owner document changes.
public void DoOnDocumentChanging()
Implements:
Does nothing because a print page has no interactive caret.
public void FocusCaret()
Implements:
Is not implemented because the print presenter does not support interactive hit-testing.
public Point GetDocumentPointFromViewPoint(Point viewPoint)
The point to convert.
Returns:This method does not return a value.
Exceptions: NotImplementedExceptionThis presenter does not map viewport points to document coordinates.
Implements:
Is not implemented because the print presenter does not support interactive hit-testing.
public DocumentPosition GetDocumentPositionFromViewPoint(Point viewPoint)
The point to convert.
Returns:This method does not return a value.
Exceptions: NotImplementedExceptionThis presenter does not map viewport points to document positions.
Implements:
Returns the origin because the print presenter does not map document positions to an interactive viewport.
public Point GetViewPointFromDocumentPosition(DocumentPosition position)
The document position.
Returns:A point at the origin.
Implements:
Does nothing because a print page has no interactive caret.
public void HideCaret()
Implements:
Does nothing because the print presenter does not display drag-and-drop markers.
public void HideDropMarker()
Implements:
Determines whether a layer is included in print output; selection, adornment, proofing, and formatting layers are excluded.
Measures and arranges the document, updates header/footer content, and refreshes the visible UI layers.
Does nothing because the print presenter does not display drag-and-drop markers.
public void MoveDropMarker(DocumentPosition position)
The requested insertion position.
Implements:
Renders one document page into the specified graphics surface and raises the printing lifecycle events.
public void PrintPage(Graphics graphics, int pageNumber, RectangleF drawArea)
The graphics surface to draw on.
pageNumberintThe zero-based page index to render.
drawAreaRectangleFThe bounds available for the printed page.
Recreates the page's visual layer elements from the current layer stack.
public void RecreateUI()
Implements:
Does nothing because a print page has no interactive caret.
public void ShowCaret()
Implements:
Does nothing because the print presenter does not display drag-and-drop markers.
public void ShowDropMarker(DocumentPosition position)
The requested insertion position.
Implements:
Does nothing because a print page has no interactive caret.
public void UpdateCaretSize()
Implements:
Does nothing because proofing decorations are excluded from print rendering.
public void UpdateProofingTextDecoration()
Implements:
Events
Occurs when printing ends. Silverlight raises this once per print operation; other builds raise it after each rendered page.
public event EventHandler<PrintCompletedEventArgs> PrintingCompleted
Occurs when printing begins. Silverlight raises this once per print operation; other builds raise it for each rendered page.
public event EventHandler PrintingStarted