PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.5.2 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / RenderDirectText Method / RenderDirectText(Unit,Unit,String,Object,Font,Color,AlignHorzEnum) 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 font to use.
The text color.
The horizontal text alignment.

In This Topic
    RenderDirectText(Unit,Unit,String,Object,Font,Color,AlignHorzEnum) Method
    In This Topic
    Adds a text to the Body of the current document at a specific position on the current page, with auto height, 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 font As Font, _
       ByVal textColor As Color, _
       ByVal horzAlign As AlignHorzEnum _
    ) 
    public void RenderDirectText( 
       Unit x,
       Unit y,
       string text,
       object width,
       Font font,
       Color textColor,
       AlignHorzEnum horzAlign
    )

    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).
    font
    The font to use.
    textColor
    The text color.
    horzAlign
    The horizontal text alignment.
    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