XFINIUM.PDF Documentation
DrawString(String,PdfFont,PdfBrush,Double,Double,PdfStructureElement) Method



Xfinium.Pdf.Graphics Namespace > PdfGraphics Class > DrawString Method : DrawString(String,PdfFont,PdfBrush,Double,Double,PdfStructureElement) Method
String to draw.
PdfFont that defines the text format of the string.
PdfBrush that determines the color and texture of the drawn text.
The x-coordinate of the upper-left corner of the drawn text.
The y-coordinate of the upper-left corner of the drawn text.
The structure element that is associated with this piece of content.
Draws the specified text string at the specified location with the specified PdfBrush and PdfFont objects.
Syntax
'Declaration
 
Public Overloads Sub DrawString( _
   ByVal s As String, _
   ByVal font As PdfFont, _
   ByVal brush As PdfBrush, _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal structureElement As PdfStructureElement _
) 
'Usage
 
Dim instance As PdfGraphics
Dim s As String
Dim font As PdfFont
Dim brush As PdfBrush
Dim x As Double
Dim y As Double
Dim structureElement As PdfStructureElement
 
instance.DrawString(s, font, brush, x, y, structureElement)

Parameters

s
String to draw.
font
PdfFont that defines the text format of the string.
brush
PdfBrush that determines the color and texture of the drawn text.
x
The x-coordinate of the upper-left corner of the drawn text.
y
The y-coordinate of the upper-left corner of the drawn text.
structureElement
The structure element that is associated with this piece of content.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfGraphics Class
PdfGraphics Members
Overload List