Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

PdfGraphics.DrawString Method

Name Parameters Description
DrawString(String, Font, SolidBrush, PointF, PdfStringFormat) text, font, brush, point, format Draws the specified text string at the specified location with the specified SolidBrush and Font objects using the formatting attributes of the specified PdfStringFormat.
DrawString(String, Font, SolidBrush, PointF) text, font, brush, point A set of overloaded methods used to draw the text string with the specified SolidBrush, Font objects and other parameters.
DrawString(String, Font, SolidBrush, RectangleF, PdfStringFormat) text, font, brush, layout, format Draws the specified text at the specified rectangle with the specified SolidBrush and Font objects using the formatting attributes of the specified PdfStringFormat.
DrawString(String, Font, SolidBrush, RectangleF) text, font, brush, layout A set of overloaded methods used to draw the text string with the specified SolidBrush, Font objects and other parameters.
DrawString(String, Font, SolidBrush, Single, Single, PdfStringFormat) text, font, brush, x, y, format Draws the specified text string at the specified location with the specified SolidBrush and Font objects using the formatting attributes of the specified PdfStringFormat.
DrawString(String, Font, SolidBrush, Single, Single) text, font, brush, x, y A set of overloaded methods used to draw the text string with the specified SolidBrush, Font objects and other parameters.