Spread WPF 18
GrapeCity.Drawing Namespace / IDrawingContext Interface / DrawText Method / DrawText(RichText,Rectangle,DrawingTextFormat) Method
The text to draw.
Rectangle structure that specifies the boundary of the drawn text.
DrawingTextFormat structure that specifies the drawing text format.


In This Topic
    DrawText(RichText,Rectangle,DrawingTextFormat) Method
    In This Topic
    Draws the specified text string in the specified rectangle with the specified Brush and GrapeCity.Spreadsheet.Font objects.
    Syntax
    'Declaration
     
    Overloads Sub DrawText( _
       ByVal richText As RichText, _
       ByVal rect As Rectangle, _
       Optional ByVal drawingTextFormat As DrawingTextFormat _
    ) 
    'Usage
     
    Dim instance As IDrawingContext
    Dim richText As RichText
    Dim rect As Rectangle
    Dim drawingTextFormat As DrawingTextFormat
     
    instance.DrawText(richText, rect, drawingTextFormat)
    void DrawText( 
       RichText richText,
       Rectangle rect,
       DrawingTextFormat drawingTextFormat
    )

    Parameters

    richText
    The text to draw.
    rect
    Rectangle structure that specifies the boundary of the drawn text.
    drawingTextFormat
    DrawingTextFormat structure that specifies the drawing text format.
    See Also