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: 6.2.6.0 (6.2.6.2020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public void DrawString(
	string s,
	PdfFontBase font,
	PdfBrush brush,
	PointF point,
	PdfStringFormat format
)
Public Sub DrawString ( 
	s As String,
	font As PdfFontBase,
	brush As PdfBrush,
	point As PointF,
	format As PdfStringFormat
)
public:
void DrawString(
	String^ s, 
	PdfFontBase^ font, 
	PdfBrush^ brush, 
	PointF point, 
	PdfStringFormat^ format
)
member DrawString : 
        s : string * 
        font : PdfFontBase * 
        brush : PdfBrush * 
        point : PointF * 
        format : PdfStringFormat -> unit 

Parameters

s
String
The text string.
font
PdfFontBase
The font.
brush
PdfBrush
The brush.
point
PointF
The point.
format
PdfStringFormat
The text string format.

See Also