Skip to main content
.NET Framework 4.5.2+

PdfGraphics.DrawString Method

Name Parameters Description
DrawString(String, Font, SolidBrush, PointF, PdfStringFormat) text, font, brush, point, format Draws text at the specified point. Allows you to specify brush, font, and string parameters.
DrawString(String, Font, SolidBrush, PointF) text, font, brush, point Draws text with the specified brush and font parameters at the specified page point.
DrawString(String, Font, SolidBrush, RectangleF, PdfStringFormat) text, font, brush, layout, format Draws text in the specified page rectangle. Allows you to specify brush, font, and string parameters.
DrawString(String, Font, SolidBrush, RectangleF) text, font, brush, layout Draws text with the specified brush and font parameters in the specified page rectangle.
DrawString(String, Font, SolidBrush, Single, Single, PdfStringFormat) text, font, brush, x, y, format Draws text at the specified page point. Allows you to specify brush, font, and string parameters.
DrawString(String, Font, SolidBrush, Single, Single) text, font, brush, x, y Draws text with the specified brush and font parameters at the specified point on a page.