ComponentOne Word for WinForms
C1.C1Word.4.5.2 Assembly / C1.C1Word Namespace / C1WordDocument Class / DrawString Method / DrawString(String,Font,Color,RectangleF,StringFormat) Method
The text string of the paragraph.
The drawing font.
The drawing color.
The drawing rectangle.
The drawing string format.

In This Topic
    DrawString(String,Font,Color,RectangleF,StringFormat) Method
    In This Topic
    Draw text string into this document in next position.
    Syntax
    'Declaration
     
    Public Overloads Sub DrawString( _
       ByVal text As System.String, _
       ByVal font As System.Drawing.Font, _
       ByVal clr As System.Drawing.Color, _
       ByVal rc As System.Drawing.RectangleF, _
       ByVal sf As System.Drawing.StringFormat _
    ) 
    public void DrawString( 
       System.string text,
       System.Drawing.Font font,
       System.Drawing.Color clr,
       System.Drawing.RectangleF rc,
       System.Drawing.StringFormat sf
    )

    Parameters

    text
    The text string of the paragraph.
    font
    The drawing font.
    clr
    The drawing color.
    rc
    The drawing rectangle.
    sf
    The drawing string format.
    See Also