PdfCanvas
DrawString Method (String, PdfFontBase, PdfPen, PointF, Boolean)
|
Draws the specified text string at the specified location
with the specified Brush 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,
PointF point,
bool htmlTags
)
Public Sub DrawString (
s As String,
font As PdfFontBase,
pen As PdfPen,
point As PointF,
htmlTags As Boolean
)
public:
void DrawString(
String^ s,
PdfFontBase^ font,
PdfPen^ pen,
PointF point,
bool htmlTags
)
member DrawString :
s : string *
font : PdfFontBase *
pen : PdfPen *
point : PointF *
htmlTags : bool -> 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.
-
point
-
Type:
System.Drawing
PointF
The location point.
-
htmlTags
-
Type:
System
Boolean
whether the parsing of HTML tags
See Also