New to Telerik UI for WPFStart a free 30-day trial

Represents a presenter for printing documents in the Telerik UI framework.

Definition

Namespace:Telerik.Windows.Documents.UI

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class DocumentPrintPresenter : ContentControl, IDocumentEditorPresenter, IUILayerContainer

Inheritance: objectDocumentPrintPresenter

Implements: IDocumentEditorPresenterIUILayerContainer

Constructors

C#
public DocumentPrintPresenter(PrintSettings settings)
Parameters:settingsPrintSettings

Properties

Gets a value indicating whether the document print presenter can receive focus.

C#
public bool IsFocusable { get; set; }

Gets a value indicating whether the document is currently being printed.

C#
public bool IsPrinting { get; set; }

Gets or sets the owner of the DocumentPrintPresenter.

C#
public RadRichTextBox Owner { get; set; }
Property Value:

The owner of the DocumentPrintPresenter.

Implements: IDocumentEditorPresenter.Owner

Represents the settings for the document print presenter.

C#
public PrintSettings Settings { get; set; }

Represents the collection of UI layers in the DocumentPrintPresenter.

C#
public UILayerStack UILayers { get; }

Implements: IUILayerContainer.UILayers

Methods

C#
protected override Size ArrangeOverride(Size finalSize)
Parameters:finalSizeSizeReturns:

Size

Executes necessary actions when the document changes.

C#
public void DoOnDocumentChanged()

Implements: IDocumentEditorPresenter.DoOnDocumentChanged()

Executes actions that need to occur when the document is about to change.

C#
public void DoOnDocumentChanging()

Implements: IDocumentEditorPresenter.DoOnDocumentChanging()

Sets the focus to the caret in the document print presenter, allowing for user interaction with the print content.

C#
public void FocusCaret()

Implements: IDocumentEditorPresenter.FocusCaret()

Converts a specified point in the view coordinates to the corresponding point in the document coordinates.

C#
public Point GetDocumentPointFromViewPoint(Point viewPoint)
Parameters:viewPointPoint

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: IDocumentEditorPresenter.GetDocumentPointFromViewPoint(Point)

Retrieves the document position corresponding to a specified view point.

C#
public DocumentPosition GetDocumentPositionFromViewPoint(Point viewPoint)
Parameters:viewPointPoint

The point in the view from which to calculate the document position.

Returns:

DocumentPosition

The position within the document that corresponds to the given view point.

Implements: IDocumentEditorPresenter.GetDocumentPositionFromViewPoint(Point)

Retrieves the viewpoint corresponding to a specified document position.

C#
public Point GetViewPointFromDocumentPosition(DocumentPosition position)
Parameters:positionDocumentPosition

The document position from which to obtain the viewpoint.

Returns:

Point

The viewpoint that represents the specified document position.

Implements: IDocumentEditorPresenter.GetViewPointFromDocumentPosition(DocumentPosition)

Hides the caret in the document print presenter.

C#
public void HideCaret()

Implements: IDocumentEditorPresenter.HideCaret()

Hides the drop marker displayed in the document print presenter.

C#
public void HideDropMarker()

Implements: IDocumentEditorPresenter.HideDropMarker()

Determines whether a specified UI layer is supported by the Document Print Presenter.

C#
public bool IsLayerSupported(IUILayer layer)
Parameters:layerIUILayer

The UI layer to evaluate for support.

Returns:

bool

True if the specified layer is supported; otherwise, false.

Implements: IUILayerContainer.IsLayerSupported(IUILayer)

C#
protected override Size MeasureOverride(Size availableSize)
Parameters:availableSizeSizeReturns:

Size

Moves the drop marker to the specified document position.

C#
public void MoveDropMarker(DocumentPosition position)
Parameters:positionDocumentPosition

The document position at which to move the drop marker.

Implements: IDocumentEditorPresenter.MoveDropMarker(DocumentPosition)

Prints the document using the specified print dialog and print settings.

C#
public void Print(PrintDialog printDialog, PrintSettings settings)
Parameters:printDialogPrintDialog

The print dialog used to configure print options.

settingsPrintSettings

The 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.

C#
public void RecreateUI()

Implements: IDocumentEditorPresenter.RecreateUI()

Displays the caret in the document viewer.

C#
public void ShowCaret()

Implements: IDocumentEditorPresenter.ShowCaret()

Displays a drop marker at the specified document position in the print presenter.

C#
public void ShowDropMarker(DocumentPosition position)
Parameters:positionDocumentPosition

The document position where the drop marker will be displayed.

Implements: IDocumentEditorPresenter.ShowDropMarker(DocumentPosition)

Updates the properties of the caret in the document print presenter.

C#
public void UpdateCaretProperties()

Implements: IDocumentEditorPresenter.UpdateCaretProperties()

Updates the size of the caret for the document print presenter.

C#
public void UpdateCaretSize()

Implements: IDocumentEditorPresenter.UpdateCaretSize()

Updates the text decoration for proofing within the document print presenter.

C#
public void UpdateProofingTextDecoration()

Implements: IDocumentEditorPresenter.UpdateProofingTextDecoration()

Events

C#
public event EventHandler<PrintCompletedEventArgs> PrintingCompleted
C#
public event EventHandler PrintingStarted