Draws the specified text string at the specified location and size
with the specified Pen and Font objects.
Namespace: Spire.Pdf.GraphicsAssembly: Spire.Pdf (in Spire.Pdf.dll) Version: 6.2.6.0 (6.2.6.2020)
Syntax
C# | Visual Basic | Visual C++ | F# |
public void DrawString( string s, PdfFontBase font, PdfPen pen, RectangleF layoutRectangle, PdfStringFormat format )
Public Sub DrawString ( s As String, font As PdfFontBase, pen As PdfPen, layoutRectangle As RectangleF, format As PdfStringFormat )
public: void DrawString( String^ s, PdfFontBase^ font, PdfPen^ pen, RectangleF layoutRectangle, PdfStringFormat^ format )
member DrawString : s : string * font : PdfFontBase * pen : PdfPen * layoutRectangle : RectangleF * format : PdfStringFormat -> unit
Parameters
- s
- String
The text string.
- font
- PdfFontBase
The font.
- pen
- PdfPen
The pen.
- layoutRectangle
- RectangleF
RectangleF structure that specifies the bounds of the drawn text.
- format
- PdfStringFormat
The text string format.