Compartir a través de


Font.DrawText Method

Include Protected Members
Include Inherited Members

Include .NET Framework Members

Include .NET Compact Framework Members
Include XNA Framework Members

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Draws formatted text.

Overload List

  Name Description
Public methodSupported by the .NET Compact Framework DrawText(Sprite, String, Point, Color) Draws formatted text.
Public methodSupported by the .NET Compact Framework DrawText(Sprite, String, Point, Int32) Draws formatted text.
Public methodSupported by the .NET Compact Framework DrawText(Sprite, String, Rectangle, DrawTextFormat, Color) Draws formatted text.
Public methodSupported by the .NET Compact Framework DrawText(Sprite, String, Rectangle, DrawTextFormat, Int32) Draws formatted text.
Public methodSupported by the .NET Compact Framework DrawText(Sprite, String, Int32, Int32, Color) Draws formatted text.
Public methodSupported by the .NET Compact Framework DrawText(Sprite, String, Int32, Int32, Int32) Draws formatted text.

Top

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