Spread WPF 18
GrapeCity.Drawing Namespace / IDrawingContext Interface / DrawText Method / DrawText(String,Font,Rectangle,DrawingTextFormat,Double) 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.
DrawingTextFormat structure that specifies the drawing text format.


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

    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
    DrawingTextFormat structure that specifies the drawing text format.
    rotation
    See Also