VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Pdf.Drawing Namespace / PdfGraphics Class / DrawString Methods / DrawString(String,IDrawingFont,PdfBrush,PointF) Method
Syntax Remarks Requirements SeeAlso
In This Topic
DrawString(String,IDrawingFont,PdfBrush,PointF) Method (PdfGraphics)
In This Topic
Draws the specified text string in vector form at the specified location using the specified PdfBrush and IDrawingFont objects.
Syntax
'Declaration

Public Overloads Sub DrawString( _
ByVal s
String to draw.
As System.String, _
ByVal font
IDrawingFont that should be used for drawing a string.
As Vintasoft.Imaging.Drawing.IDrawingFont, _
ByVal brush
PdfBrush that determines the color and texture of the drawn text.
As PdfBrush, _
ByVal location
System.Drawing.PointF structure that specifies the text location.
As System.Drawing.PointF _
)
public void DrawString(
System.String s,
Vintasoft.Imaging.Drawing.IDrawingFont font,
PdfBrush brush,
System.Drawing.PointF location
)

Parameters

s
String to draw.
font
IDrawingFont that should be used for drawing a string.
brush
PdfBrush that determines the color and texture of the drawn text.
location
System.Drawing.PointF structure that specifies the text location.
Remarks

This method ignores carriage returns and new line characters.

Use overloaded method that takes rectangle, instead of point that specifies location, if carriage returns and new line characters should NOT be ignored.

Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also