Draws a string into the specified Rect.

Namespace:  C1.Silverlight.Pdf
Assembly:  C1.Silverlight.Pdf (in C1.Silverlight.Pdf.dll)

Syntax

C#
public int DrawString(
	string text,
	Font font,
	Color color,
	Rect rc
)
Visual Basic
Public Function DrawString ( _
	text As String, _
	font As Font, _
	color As Color, _
	rc As Rect _
) As Integer

Parameters

text
Type: System..::..String
Text to draw.
font
Type: C1.Silverlight.Pdf..::..Font
Font to use for drawing the text.
color
Type: System.Windows.Media..::..Color
Color of the text.
rc
Type: System.Windows..::..Rect
Rect that specifies the size and position of the text, in points.

Return Value

The index of the first character in the string that did not fit in the rectangle.

See Also