ComponentOne PDF for WPF and Silverlight
DrawString(String,Font,Color,Point,StringFormat,Single) Method

C1.Silverlight.Pdf.5 Assembly > C1.Silverlight.Pdf Namespace > C1PdfDocument Class > DrawString Method : DrawString(String,Font,Color,Point,StringFormat,Single) Method
String to draw.
Font object that defines the appearance and size of the drawn text.
The object that defines the color of the drawn text.
The point structure that specifies the location of the drawn text, in points
StringFormat object that specifies formatting attributes applied to the drawn text.
The width coefficient of text characters, by default 1.0, for double width 2.0.
Draws the specified text string at the specified point with the specified System.Windows.Media.Brush and Font objects using the formatting attributes of the specified StringFormat object and specified width coefficient of text characters.
Syntax
'Declaration
 
Public Overloads Function DrawString( _
   ByVal text As String, _
   ByVal font As Font, _
   ByVal brush As Color, _
   ByVal pt As Point, _
   ByVal sf As StringFormat, _
   ByVal widthCoeff As Single _
) As Integer

Parameters

text
String to draw.
font
Font object that defines the appearance and size of the drawn text.
brush
The object that defines the color of the drawn text.
pt
The point structure that specifies the location of the drawn text, in points
sf
StringFormat object that specifies formatting attributes applied to the drawn text.
widthCoeff
The width coefficient of text characters, by default 1.0, for double width 2.0.

Return Value

The index of first character that was not printed because it did not fit in the specified rectangle.
See Also

Reference

C1PdfDocument Class
C1PdfDocument Members
Overload List