ComponentOne PDF for WPF and Silverlight
DrawString(String,Font,Color,Rect,Int32) Method

C1.WPF.Pdf.4 Assembly > C1.WPF.Pdf Namespace > C1PdfDocument Class > DrawString Method : DrawString(String,Font,Color,Rect,Int32) Method
String to draw.
Font object that defines the appearance and size of the drawn text.
The color of the drawn text.
The rectangle structure that specifies the location of the drawn text, in points from the top left corner of the page.
Index of the first character that will be rendered.
Draws the specified text string in the specified rectangle with the specified System.Windows.Media.Brush and Font objects using the formatting attributes of the specified StringFormat object.
Syntax
'Declaration
 
Public Overloads Function DrawString( _
   ByVal text As String, _
   ByVal font As Font, _
   ByVal color As Color, _
   ByVal rc As Rect, _
   ByVal firstChar As Integer _
) As Integer
public int DrawString( 
   string text,
   Font font,
   Color color,
   Rect rc,
   int firstChar
)

Parameters

text
String to draw.
font
Font object that defines the appearance and size of the drawn text.
color
The color of the drawn text.
rc
The rectangle structure that specifies the location of the drawn text, in points from the top left corner of the page.
firstChar
Index of the first character that will be rendered.

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