Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / GcGraphicsExt Class / DrawTextBox Method / DrawTextBox(GcGraphics,RectangleF,String,Boolean,TextFormat,Color,Border,VariableTextJustification,Boolean) Method
The graphics to draw on.
The control bounds.
The control text.
Indicates whether the control is multi-line.
The text format to use.
The background color.
The border definition.
The text justification.
Indicates whether to draw the border in red, ignoring the color specified in border.

In This Topic
    DrawTextBox(GcGraphics,RectangleF,String,Boolean,TextFormat,Color,Border,VariableTextJustification,Boolean) Method
    In This Topic
    Draws a text box.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub DrawTextBox( _
       ByVal g As GcGraphics, _
       ByVal bounds As System.Drawing.RectangleF, _
       ByVal text As System.String, _
       ByVal multiLine As System.Boolean, _
       ByVal textFormat As TextFormat, _
       ByVal backColor As System.Drawing.Color, _
       ByVal border As Border, _
       ByVal justification As VariableTextJustification, _
       ByVal required As System.Boolean _
    ) 
    public static void DrawTextBox( 
       GcGraphics g,
       System.Drawing.RectangleF bounds,
       System.string text,
       System.bool multiLine,
       TextFormat textFormat,
       System.Drawing.Color backColor,
       Border border,
       VariableTextJustification justification,
       System.bool required
    )

    Parameters

    g
    The graphics to draw on.
    bounds
    The control bounds.
    text
    The control text.
    multiLine
    Indicates whether the control is multi-line.
    textFormat
    The text format to use.
    backColor
    The background color.
    border
    The border definition.
    justification
    The text justification.
    required
    Indicates whether to draw the border in red, ignoring the color specified in border.
    See Also