Represents a presenter for printing documents in the Telerik UI framework.
Definition
Namespace:Telerik.Windows.Documents.UI
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class DocumentPrintPresenter : ContentControl, IDocumentEditorPresenter, IUILayerContainer
Inheritance: objectDocumentPrintPresenter
Implements:
Constructors
Properties
Gets a value indicating whether the document print presenter can receive focus.
public bool IsFocusable { get; set; }
Gets a value indicating whether the document is currently being printed.
public bool IsPrinting { get; set; }
Gets or sets the owner of the DocumentPrintPresenter.
public RadRichTextBox Owner { get; set; }
The owner of the DocumentPrintPresenter.
Implements:
Represents the settings for the document print presenter.
public PrintSettings Settings { get; set; }
Represents the collection of UI layers in the DocumentPrintPresenter.
public UILayerStack UILayers { get; }
Implements:
Methods
protected override Size ArrangeOverride(Size finalSize)
Size
Executes necessary actions when the document changes.
public void DoOnDocumentChanged()
Implements:
Executes actions that need to occur when the document is about to change.
public void DoOnDocumentChanging()
Implements:
Sets the focus to the caret in the document print presenter, allowing for user interaction with the print content.
public void FocusCaret()
Implements:
Converts a specified point in the view coordinates to the corresponding point in the document coordinates.
public Point GetDocumentPointFromViewPoint(Point viewPoint)
The point in view coordinates that needs to be converted.
Returns:Point
A point in document coordinates that corresponds to the specified view point.
Implements:
Retrieves the document position corresponding to a specified view point.
public DocumentPosition GetDocumentPositionFromViewPoint(Point viewPoint)
The point in the view from which to calculate the document position.
Returns:The position within the document that corresponds to the given view point.
Implements:
Retrieves the viewpoint corresponding to a specified document position.
public Point GetViewPointFromDocumentPosition(DocumentPosition position)
The document position from which to obtain the viewpoint.
Returns:Point
The viewpoint that represents the specified document position.
Implements:
Hides the caret in the document print presenter.
public void HideCaret()
Implements:
Hides the drop marker displayed in the document print presenter.
public void HideDropMarker()
Implements:
protected override Size MeasureOverride(Size availableSize)
Size
Moves the drop marker to the specified document position.
public void MoveDropMarker(DocumentPosition position)
The document position at which to move the drop marker.
Implements:
Prints the document using the specified print dialog and print settings.
public void Print(PrintDialog printDialog, PrintSettings settings)
The print dialog used to configure print options.
settingsPrintSettingsThe settings that define how the document should be printed.
Recreates the user interface for the document print presenter. This method is typically called to refresh the UI elements when the underlying document or settings change.
public void RecreateUI()
Implements:
Displays the caret in the document viewer.
public void ShowCaret()
Implements:
Displays a drop marker at the specified document position in the print presenter.
public void ShowDropMarker(DocumentPosition position)
The document position where the drop marker will be displayed.
Implements:
Updates the properties of the caret in the document print presenter.
public void UpdateCaretProperties()
Implements:
Updates the size of the caret for the document print presenter.
public void UpdateCaretSize()
Implements:
Updates the text decoration for proofing within the document print presenter.
public void UpdateProofingTextDecoration()
Implements:
Events
public event EventHandler<PrintCompletedEventArgs> PrintingCompleted
public event EventHandler PrintingStarted