Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Drawing Namespace / IDrawingContext Interface / DrawText Method / DrawText(String,Font,Rectangle,DrawingTextFormat) Method
String to draw.
GrapeCity.Spreadsheet.Font that defines the text format of the string.
Rectangle structure that specifies the boundary of the drawn text.


In This Topic
    DrawText(String,Font,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 value As String, _
       ByVal font As Font, _
       ByVal rect As Rectangle, _
       Optional ByVal drawingTextFormat As DrawingTextFormat _
    ) 
    'Usage
     
    
    Dim instance As IDrawingContext
    Dim value As String
    Dim font As Font
    Dim rect As Rectangle
    Dim drawingTextFormat As DrawingTextFormat
     
    instance.DrawText(value, font, rect, drawingTextFormat)

    Parameters

    value
    String to draw.
    font
    GrapeCity.Spreadsheet.Font that defines the text format of the string.
    rect
    Rectangle structure that specifies the boundary of the drawn text.
    drawingTextFormat
    See Also