RichTextBox for UWP | ComponentOne
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.

In This Topic
    PrintDocument Method
    In This Topic
    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 Thickness, _
       Optional ByVal handler As Action(Of Object,EventArgs) _
    ) As Boolean
    public static bool PrintDocument( 
       C1Document document,
       C1.Xaml.Pdf.C1PdfDocument pdf,
       Thickness marginInPoints,
       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