DrawTextFormat Enumeration (Microsoft.DirectX.Direct3D)
Specifies the method of formatting text.
Definition
Visual Basic Public Enum DrawTextFormat C# public enum DrawTextFormat C++ public enum class DrawTextFormat JScript public enum DrawTextFormat
Members
Member Value Description WordBreak 16 Breaks words. Lines are automatically broken between words if a word extends past the edge of the rectangle specified by the rect parameter. A carriage return/line feed sequence also breaks the line. VerticalCenter 4 Centers text vertically (on a single line only). SingleLine 32 Displays text on a single line only. Carriage returns and line feeds do not break the line. RightToLeftReading 131072 Displays text in right-to-left reading order for bidirectional text when a Hebrew or Arabic font is selected. The default reading order for all text is left-to-right. NoClip 256 Draws without clipping. Font.DrawText is somewhat faster when NoClip is used. ExpandTabs 64 Expands tab characters. The default number of characters per tab is eight. The PathEllipsis and EndEllipsis values cannot be used with the ExpandTabs value. Center 1 Centers text horizontally in the rectangle. Top 0 Top-justifies text (on a single line only). Right 2 Aligns text to right. Left 0 Aligns text to left. Bottom 8 Justifies text to the bottom of the rectangle. This value must be combined with SingleLine. None 0 Specifies no formatting.
Enumeration Information
Namespace Microsoft.DirectX.Direct3D Assembly Microsoft.DirectX.Direct3DX (microsoft.directx.direct3dx.dll) Strong Name Microsoft.DirectX.Direct3DX, Version=1.0.900.0, Culture=neutral, PublicKeyToken=d3231b57b74a1492