Document Solutions for PDF
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / DrawString Method / DrawString(String,TextFormat,RectangleF,TextAlignment,ParagraphAlignment,Boolean) Method
The string to draw.
The text format to use.
The target rectangle.
The text alignment (GrapeCity.Documents.Text.TextAlignment.Leading by default).
The paragraph alignment (GrapeCity.Documents.Text.ParagraphAlignment.Near by default).
Whether to use word wrapping (true by default).

In This Topic
    DrawString(String,TextFormat,RectangleF,TextAlignment,ParagraphAlignment,Boolean) Method
    In This Topic
    Draws a string using a specified GrapeCity.Documents.Text.TextFormat within a rectangle using a specified text alignment, paragraph alignment and word wrapping flag.
    Syntax
    'Declaration
     
    Public Overloads Sub DrawString( _
       ByVal text As System.String, _
       ByVal textFormat As TextFormat, _
       ByVal rect As System.Drawing.RectangleF, _
       Optional ByVal textAlignment As TextAlignment, _
       Optional ByVal paragraphAlignment As ParagraphAlignment, _
       Optional ByVal wordWrap As System.Boolean _
    ) 
    public void DrawString( 
       System.string text,
       TextFormat textFormat,
       System.Drawing.RectangleF rect,
       TextAlignment textAlignment,
       ParagraphAlignment paragraphAlignment,
       System.bool wordWrap
    )

    Parameters

    text
    The string to draw.
    textFormat
    The text format to use.
    rect
    The target rectangle.
    textAlignment
    The text alignment (GrapeCity.Documents.Text.TextAlignment.Leading by default).
    paragraphAlignment
    The paragraph alignment (GrapeCity.Documents.Text.ParagraphAlignment.Near by default).
    wordWrap
    Whether to use word wrapping (true by default).
    See Also