Draws the specified text string at the specified location
with the specified Brush and Font objects.
Namespace: Spire.Pdf.GraphicsAssembly: Spire.Pdf (in Spire.Pdf.dll) Version: 7.9.2.0 (7.9.2.1020)
Syntax
| C# | Visual Basic | Visual C++ | F# |
public void DrawString( string s, PdfFontBase font, PdfPen pen, float x, float y, PdfStringFormat format )
Public Sub DrawString ( s As String, font As PdfFontBase, pen As PdfPen, x As Single, y As Single, format As PdfStringFormat )
public: void DrawString( String^ s, PdfFontBase^ font, PdfPen^ pen, float x, float y, PdfStringFormat^ format )
member DrawString : s : string * font : PdfFontBase * pen : PdfPen * x : float32 * y : float32 * format : PdfStringFormat -> unit
Parameters
- s
- String
The text string.
- font
- PdfFontBase
The font.
- pen
- PdfPen
The pen.
- x
- Single
The x.
- y
- Single
The y.
- format
- PdfStringFormat
The text string format.