DrawTextFormat Enumeration
.NET Framework 3.0
Specifies the method of formatting text.
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: Microsoft.WindowsMobile.DirectX.Direct3DAssembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)
| Member name | Description | |
|---|---|---|
![]() | Bottom | Justifies text to the bottom of the rectangle. This value must be combined with SingleLine. |
![]() | Center | Centers text horizontally in the rectangle. |
![]() | ExpandTabs | Expands tab characters. The default number of characters per tab is eight. |
![]() | Left | Aligns text to the left. |
![]() | NoClip | Draws without clipping. DrawText is somewhat faster when NoClip is used. |
![]() | None | Specifies no formatting. |
![]() | Right | Aligns text to the right. |
![]() | SingleLine | Displays text on a single line only. Carriage returns and line feeds do not break the line. |
![]() | Top | Top-justifies the text (on a single line only). |
![]() | VerticalCenter | Centers the text vertically (on a single line only). |
![]() | WordBreak | Breaks 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. |
Community Additions
ADD
Show:
