ClassDocumentPrintPresenter
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
DocumentPrintPresenter(PrintSettings)
Declaration
public DocumentPrintPresenter(PrintSettings settings)
Parameters
settings
Properties
IsFocusable
Gets a value indicating whether the document print presenter can receive focus.
IsPrinting
Gets a value indicating whether the document is currently being printed.
Owner
Gets or sets the owner of the DocumentPrintPresenter.
Declaration
public RadRichTextBox Owner { get; set; }
Property Value
The owner of the DocumentPrintPresenter.
Implements
Settings
Represents the settings for the document print presenter.
Declaration
public PrintSettings Settings { get; set; }
Property Value
UILayers
Represents the collection of UI layers in the DocumentPrintPresenter.
Declaration
public UILayerStack UILayers { get; }
Property Value
Implements
Methods
ArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
finalSize
Size
Returns
Size
DoOnDocumentChanged()
Executes necessary actions when the document changes.
Declaration
public void DoOnDocumentChanged()
Implements
DoOnDocumentChanging()
Executes actions that need to occur when the document is about to change.
Declaration
public void DoOnDocumentChanging()
Implements
FocusCaret()
Sets the focus to the caret in the document print presenter, allowing for user interaction with the print content.
Declaration
public void FocusCaret()
Implements
GetDocumentPointFromViewPoint(Point)
Converts a specified point in the view coordinates to the corresponding point in the document coordinates.
Declaration
public Point GetDocumentPointFromViewPoint(Point viewPoint)
Parameters
viewPoint
Point
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
GetDocumentPositionFromViewPoint(Point)
Retrieves the document position corresponding to a specified view point.
Declaration
public DocumentPosition GetDocumentPositionFromViewPoint(Point viewPoint)
Parameters
viewPoint
Point
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
GetViewPointFromDocumentPosition(DocumentPosition)
Retrieves the viewpoint corresponding to a specified document position.
Declaration
public Point GetViewPointFromDocumentPosition(DocumentPosition position)
Parameters
position
The document position from which to obtain the viewpoint.
Returns
Point
The viewpoint that represents the specified document position.
Implements
HideCaret()
Hides the caret in the document print presenter.
Declaration
public void HideCaret()
Implements
HideDropMarker()
Hides the drop marker displayed in the document print presenter.
Declaration
public void HideDropMarker()
Implements
IsLayerSupported(IUILayer)
Determines whether a specified UI layer is supported by the Document Print Presenter.
MeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSize
Size
Returns
Size
MoveDropMarker(DocumentPosition)
Moves the drop marker to the specified document position.
Declaration
public void MoveDropMarker(DocumentPosition position)
Parameters
position
The document position at which to move the drop marker.
Implements
Print(PrintDialog, PrintSettings)
Prints the document using the specified print dialog and print settings.
Declaration
public void Print(PrintDialog printDialog, PrintSettings settings)
Parameters
printDialog
PrintDialog
The print dialog used to configure print options.
settings
The settings that define how the document should be printed.
RecreateUI()
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.
Declaration
public void RecreateUI()
Implements
ShowCaret()
Displays the caret in the document viewer.
Declaration
public void ShowCaret()
Implements
ShowDropMarker(DocumentPosition)
Displays a drop marker at the specified document position in the print presenter.
Declaration
public void ShowDropMarker(DocumentPosition position)
Parameters
position
The document position where the drop marker will be displayed.
Implements
UpdateCaretProperties()
Updates the properties of the caret in the document print presenter.
Declaration
public void UpdateCaretProperties()
Implements
UpdateCaretSize()
Updates the size of the caret for the document print presenter.
Declaration
public void UpdateCaretSize()
Implements
UpdateProofingTextDecoration()
Updates the text decoration for proofing within the document print presenter.
Declaration
public void UpdateProofingTextDecoration()
Implements
Events
PrintingCompleted
Declaration
public event EventHandler<PrintCompletedEventArgs> PrintingCompleted
Event Value