PdfCanvas
DrawString Method (String, PdfFontBase, PdfPen, RectangleF)
|
Draws the specified text string at the specified location and size
with the specified Pen and Font objects.
Namespace:
Spire.Pdf.Graphics
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public void DrawString(
string s,
PdfFontBase font,
PdfPen pen,
RectangleF layoutRectangle
)
Public Sub DrawString (
s As String,
font As PdfFontBase,
pen As PdfPen,
layoutRectangle As RectangleF
)
public:
void DrawString(
String^ s,
PdfFontBase^ font,
PdfPen^ pen,
RectangleF layoutRectangle
)
member DrawString :
s : string *
font : PdfFontBase *
pen : PdfPen *
layoutRectangle : RectangleF -> unit
Parameters
-
s
-
Type:
System
String
The text string.
-
font
-
Type:
Spire.Pdf.Graphics
PdfFontBase
The font.
-
pen
-
Type:
Spire.Pdf.Graphics
PdfPen
The pen.
-
layoutRectangle
-
Type:
System.Drawing
RectangleF
RectangleF structure that specifies the bounds of the drawn text.
See Also