DrawString(String,TextFormat,RectangleF,TextAlignment,ParagraphAlignment,Boolean) Method
In This Topic
Draws a string using a specified
GrapeCity.Documents.Text.TextFormat within a rectangle using a specified text alignment, paragraph alignment and word wrapping flag.
Syntax
'Declaration
Public Overloads Sub DrawString( _
ByVal As System.String, _
ByVal As TextFormat, _
ByVal As System.Drawing.RectangleF, _
Optional ByVal As TextAlignment, _
Optional ByVal As ParagraphAlignment, _
Optional ByVal As System.Boolean _
)
public void DrawString(
System.string ,
TextFormat ,
System.Drawing.RectangleF ,
TextAlignment ,
ParagraphAlignment ,
System.bool
)
Parameters
- text
- The string to draw.
- textFormat
- The text format to use.
- rect
- The target rectangle.
- textAlignment
- The text alignment (GrapeCity.Documents.Text.TextAlignment.Leading by default).
- paragraphAlignment
- The paragraph alignment (GrapeCity.Documents.Text.ParagraphAlignment.Near by default).
- wordWrap
- Whether to use word wrapping (true by default).
See Also