ComponentOne Word for WPF
C1.WPF.Word.4.5.2 Assembly / C1.WPF.Word Namespace / C1WordDocument Class / DrawString Method / DrawString(String,Font,Color,Rect,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,Rect,StringFormat) Method
    In This Topic
    Draw text string into this document in next position.
    Syntax
    'Declaration
     
    Public Overloads Sub DrawString( _
       ByVal text As String, _
       ByVal font As Font, _
       ByVal clr As Color, _
       ByVal rc As Rect, _
       ByVal sf As StringFormat _
    ) 
    public void DrawString( 
       string text,
       Font font,
       Color clr,
       Rect rc,
       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