Draws the specified text string at the specified point with the specified
System.Windows.Media.Brush and
Font objects.
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 from the top left corner of the page.
Return Value
The index of first character that was not printed because it did not fit in the specified rectangle.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2