共用方式為


DrawTextFormat Enumeration

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

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)

Syntax

'Declaration
<FlagsAttribute> _
Public Enumeration DrawTextFormat
'Usage
Dim instance As DrawTextFormat
[FlagsAttribute]
public enum DrawTextFormat
[FlagsAttribute]
public enum class DrawTextFormat
[<FlagsAttribute>]
type DrawTextFormat

Members

Member name Description
Supported by the .NET Compact Framework None Specifies no formatting.
Supported by the .NET Compact Framework Bottom Justifies text to the bottom of the rectangle. This value must be combined with SingleLine.
Supported by the .NET Compact Framework Center Centers text horizontally in the rectangle.
Supported by the .NET Compact Framework ExpandTabs Expands tab characters. The default number of characters per tab is eight.
Supported by the .NET Compact Framework Left Aligns text to the left.
Supported by the .NET Compact Framework NoClip Draws without clipping. DrawText is somewhat faster when NoClip is used.
Supported by the .NET Compact Framework Right Aligns text to the right.
Supported by the .NET Compact Framework SingleLine Displays text on a single line only. Carriage returns and line feeds do not break the line.
Supported by the .NET Compact Framework Top Top-justifies the text (on a single line only).
Supported by the .NET Compact Framework VerticalCenter Centers the text vertically (on a single line only).
Supported by the .NET Compact Framework 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.

Platforms

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

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

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

Microsoft.WindowsMobile.DirectX.Direct3D Namespace

Other Resources

Mobile Direct3D Programming in the .NET Compact Framework