This documentation is archived and is not being maintained.

Font.DrawText Method

Draws formatted text.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

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.