Font.DrawText Method

Draws formatted text.

Overload List

Name Description
Font.DrawText (Sprite, String, Point, Color) Draws formatted text.

Supported by the .NET Compact Framework.
Font.DrawText (Sprite, String, Point, Int32) Draws formatted text.

Supported by the .NET Compact Framework.
Font.DrawText (Sprite, String, Int32, Int32, Color) Draws formatted text.

Supported by the .NET Compact Framework.
Font.DrawText (Sprite, String, Int32, Int32, Int32) Draws formatted text.

Supported by the .NET Compact Framework.
Font.DrawText (Sprite, String, Rectangle, DrawTextFormat, Color) Draws formatted text.

Supported by the .NET Compact Framework.
Font.DrawText (Sprite, String, Rectangle, DrawTextFormat, Int32) Draws formatted text.

Supported by the .NET Compact Framework.

Remarks

This method must be called from inside of a BeginScene-method-to-EndScene-method code block.

Unless the NoClip format is used, this method clips the text so that it does not appear outside of the specified rectangle. All formatting is assumed to have multiple lines unless the SingleLine format is specified.

If the selected font is too large for the rectangle, this method does not attempt to substitute a smaller font.

This method supports only fonts whose escapement and orientation are both zero.

See Also

Reference

Font Class
Font Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace