Draws the specified text string at the specified location and size with the specified Pen, Brush and Font objects.

Namespace: Spire.Pdf.Graphics
Assembly: 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,
	PdfBrush brush,
	RectangleF layoutRectangle,
	PdfStringFormat format,
	bool htmlTags
)
Public Sub DrawString ( 
	s As String,
	font As PdfFontBase,
	pen As PdfPen,
	brush As PdfBrush,
	layoutRectangle As RectangleF,
	format As PdfStringFormat,
	htmlTags As Boolean
)
public:
void DrawString(
	String^ s, 
	PdfFontBase^ font, 
	PdfPen^ pen, 
	PdfBrush^ brush, 
	RectangleF layoutRectangle, 
	PdfStringFormat^ format, 
	bool htmlTags
)
member DrawString : 
        s : string * 
        font : PdfFontBase * 
        pen : PdfPen * 
        brush : PdfBrush * 
        layoutRectangle : RectangleF * 
        format : PdfStringFormat * 
        htmlTags : bool -> unit 

Parameters

s
String
The text string.
font
PdfFontBase
The font.
pen
PdfPen
The pen.
brush
PdfBrush
The brush.
layoutRectangle
RectangleF
RectangleF structure that specifies the bounds of the drawn text.
format
PdfStringFormat
The text string format.
htmlTags
Boolean
whether the parsing of HTML tags

See Also