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

Public Overloads Sub DrawString( _
ByVal s
String to draw.
As System.String, _
ByVal font
IDrawingFont that defines the 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, _
ByVal textLayoutProperties
The text layout properties.
As Vintasoft.Imaging.Drawing.TextLayoutProperties _
)

Parameters

s
String to draw.
font
IDrawingFont that defines the string.
brush
PdfBrush that determines the color and texture of the drawn text.
location
System.Drawing.PointF structure that specifies the text location.
textLayoutProperties
The text layout properties.
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