ComponentOne RichTextBox for UWP
PrintDocument Method

C1.Xaml.RichTextBox.PdfFilter Namespace > PdfFilter Class : PrintDocument Method
The source document.
The PDF document.
The margin in points.
The handler which is fired when PrintDocument is completed.
Prints the C1.Xaml.RichTextBox.Documents.C1Document into a C1.Xaml.Pdf.C1PdfDocument.
Syntax
'Declaration
 
Public Shared Function PrintDocument( _
   ByVal document As C1Document, _
   ByVal pdf As C1.Xaml.Pdf.C1PdfDocument, _
   ByVal marginInPoints As Windows.UI.Xaml.Thickness, _
   Optional ByVal handler As System.Action(Of Object,EventArgs) _
) As System.Boolean
public static System.bool PrintDocument( 
   C1Document document,
   C1.Xaml.Pdf.C1PdfDocument pdf,
   Windows.UI.Xaml.Thickness marginInPoints,
   System.Action<object,EventArgs> handler
)

Parameters

document
The source document.
pdf
The PDF document.
marginInPoints
The margin in points.
handler
The handler which is fired when PrintDocument is completed.

Return Value

True if the print was successful
See Also

Reference

PdfFilter Class
PdfFilter Members