PdfCanvas
DrawString Method (String, PdfFontBase, PdfBrush, RectangleF, PdfStringFormat, Boolean)
|
Draws the specified text string at the specified location and size
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,
PdfBrush brush,
RectangleF layoutRectangle,
PdfStringFormat format,
bool htmlTags
)
Public Sub DrawString (
s As String,
font As PdfFontBase,
brush As PdfBrush,
layoutRectangle As RectangleF,
format As PdfStringFormat,
htmlTags As Boolean
)
public:
void DrawString(
String^ s,
PdfFontBase^ font,
PdfBrush^ brush,
RectangleF layoutRectangle,
PdfStringFormat^ format,
bool htmlTags
)
member DrawString :
s : string *
font : PdfFontBase *
brush : PdfBrush *
layoutRectangle : RectangleF *
format : PdfStringFormat *
htmlTags : bool -> unit
Parameters
-
s
-
Type:
System
String
The text string.
-
font
-
Type:
Spire.Pdf.Graphics
PdfFontBase
The font.
-
brush
-
Type:
Spire.Pdf.Graphics
PdfBrush
The brush.
-
layoutRectangle
-
Type:
System.Drawing
RectangleF
RectangleF structure that specifies the bounds of the drawn text.
-
format
-
Type:
Spire.Pdf.Graphics
PdfStringFormat
The text string format.
-
htmlTags
-
Type:
System
Boolean
whether the parsing of HTML tags
See Also