This documentation is archived and is not being maintained.

ContentAlignment Enumeration

Specifies alignment of content on the drawing surface.

[Visual Basic]
<Serializable>
Public Enum ContentAlignment
[C#]
[Serializable]
public enum ContentAlignment
[C++]
[Serializable]
__value public enum ContentAlignment
[JScript]
public
   Serializable
enum ContentAlignment

Members

Member name Description
BottomCenter Content is vertically aligned at the bottom, and horizontally aligned at the center.
BottomLeft Content is vertically aligned at the bottom, and horizontally aligned on the left.
BottomRight Content is vertically aligned at the bottom, and horizontally aligned on the right.
MiddleCenter Content is vertically aligned in the middle, and horizontally aligned at the center.
MiddleLeft Content is vertically aligned in the middle, and horizontally aligned on the left.
MiddleRight Content is vertically aligned in the middle, and horizontally aligned on the right.
TopCenter

Supported by the .NET Compact Framework.

Content is vertically aligned at the top, and horizontally aligned at the center.
TopLeft

Supported by the .NET Compact Framework.

Content is vertically aligned at the top, and horizontally aligned on the left.
TopRight

Supported by the .NET Compact Framework.

Content is vertically aligned at the top, and horizontally aligned on the right.

Requirements

Namespace: System.Drawing

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: System.Drawing (in System.Drawing.dll)

See Also

System.Drawing Namespace

Show: