PrintDocument for WPF | ComponentOne
C1.WPF.PrintDocument.4.6.2 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / RenderDirectText Method / RenderDirectText(Unit,Unit,String,Object,Object,Style) Method
The horizontal (X) coordinate at which to render the image (cannot be auto).
The vertical (Y) coordinate at which to render the image (cannot be auto).
The string to render.
The width of the text area (if null, auto is used).
The height of the text area (if null, auto is used).
The Style to use, or null.

In This Topic
    RenderDirectText(Unit,Unit,String,Object,Object,Style) Method
    In This Topic
    Adds a text to the Body of the current document at a specific position on the current page, and resolves it.
    Syntax
    'Declaration
     
    Public Overloads Sub RenderDirectText( _
       ByVal x As Unit, _
       ByVal y As Unit, _
       ByVal text As String, _
       ByVal width As Object, _
       ByVal height As Object, _
       ByVal style As Style _
    ) 
    public void RenderDirectText( 
       Unit x,
       Unit y,
       string text,
       object width,
       object height,
       Style style
    )

    Parameters

    x
    The horizontal (X) coordinate at which to render the image (cannot be auto).
    y
    The vertical (Y) coordinate at which to render the image (cannot be auto).
    text
    The string to render.
    width
    The width of the text area (if null, auto is used).
    height
    The height of the text area (if null, auto is used).
    style
    The Style to use, or null.
    Remarks

    This method can only be used between calls to StartDoc and EndDoc methods on the current document. For details, see RenderDirect(Unit,Unit,RenderObject,Object,Object).

    See Also