PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.5.2 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / RenderDirectRichText Method / RenderDirectRichText(Unit,Unit,String,Object) Method
The horizontal (X) coordinate at which to render the text (cannot be auto).
The vertical (Y) coordinate at which to render the text (cannot be auto).
The RTF-formatted string to render.
The width of the text area (cannot be null or auto).

In This Topic
    RenderDirectRichText(Unit,Unit,String,Object) Method
    In This Topic
    Adds an RTF-formatted string to the C1.C1Preview.C1PrintDocument.Body of the current document at a specific position on the current page with auto height, and resolves it.
    Syntax
    'Declaration
     
    Public Overloads Sub RenderDirectRichText( _
       ByVal x As Unit, _
       ByVal y As Unit, _
       ByVal rtf As String, _
       ByVal width As Object _
    ) 
    public void RenderDirectRichText( 
       Unit x,
       Unit y,
       string rtf,
       object width
    )

    Parameters

    x
    The horizontal (X) coordinate at which to render the text (cannot be auto).
    y
    The vertical (Y) coordinate at which to render the text (cannot be auto).
    rtf
    The RTF-formatted string to render.
    width
    The width of the text area (cannot be null or auto).
    Remarks

    This method can only be used between calls to C1.C1Preview.C1PrintDocument.StartDoc and C1.C1Preview.C1PrintDocument.EndDoc methods on the current document. For details, see C1.C1Preview.C1PrintDocument.RenderDirect.

    See Also