DrawTextFormat Enumeration

Specifies the method of formatting text.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

public enum DrawTextFormat
/** @attribute FlagsAttribute() */ 
public enum DrawTextFormat
public enum DrawTextFormat

 Member nameDescription
Supported by the .NET Compact FrameworkBottomJustifies text to the bottom of the rectangle. This value must be combined with SingleLine
Supported by the .NET Compact FrameworkCenterCenters text horizontally in the rectangle. 
Supported by the .NET Compact FrameworkExpandTabsExpands tab characters. The default number of characters per tab is eight.  
Supported by the .NET Compact FrameworkLeftAligns text to the left. 
Supported by the .NET Compact FrameworkNoClipDraws without clipping. DrawText is somewhat faster when NoClip is used. 
Supported by the .NET Compact FrameworkNoneSpecifies no formatting. 
Supported by the .NET Compact FrameworkRightAligns text to the right. 
Supported by the .NET Compact FrameworkSingleLineDisplays text on a single line only. Carriage returns and line feeds do not break the line. 
Supported by the .NET Compact FrameworkTopTop-justifies the text (on a single line only). 
Supported by the .NET Compact FrameworkVerticalCenterCenters the text vertically (on a single line only). 
Supported by the .NET Compact FrameworkWordBreakBreaks words. Lines are automatically broken between words if a word extends past the edge of the rectangle specified by DrawText methods that take a Rectangle parameter. A carriage return/line feed sequence also breaks the line. 

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Compact Framework

Supported in: 2.0

Community Additions