Document Solutions for PDF
GrapeCity.Documents.DX.Windows Assembly / GrapeCity.Documents.DX.Direct2D Namespace / RenderTarget Class / DrawText Method / DrawText(String,TextFormat,RectF,Brush) Method
A reference to an array of Unicode characters to draw.
An object that describes formatting details of the text to draw, such as the font, the font size, and flow direction.
The size and position of the area in which the text is drawn.
The brush used to paint the text.

In This Topic
    DrawText(String,TextFormat,RectF,Brush) Method
    In This Topic
    Draws the specified text using the format information provided by an C1.Win.DX.DirectWrite.TextFormat object.
    Syntax
    'Declaration
     
    Public Overloads Sub DrawText( _
       ByVal text As System.String, _
       ByVal textFormat As TextFormat, _
       ByVal layoutRect As RectF, _
       ByVal defaultForegroundBrush As Brush _
    ) 
    public void DrawText( 
       System.string text,
       TextFormat textFormat,
       RectF layoutRect,
       Brush defaultForegroundBrush
    )

    Parameters

    text
    A reference to an array of Unicode characters to draw.
    textFormat
    An object that describes formatting details of the text to draw, such as the font, the font size, and flow direction.
    layoutRect
    The size and position of the area in which the text is drawn.
    defaultForegroundBrush
    The brush used to paint the text.
    See Also