System.Windows.Forms.VisualStyles.ContentAlignment Enumeration

Specifies how text is aligned in a window caption.

Syntax

public enum ContentAlignment

Remarks

The System.Windows.Forms.VisualStyles.ContentAlignment values represent the return values of the VisualStyleRenderer.GetEnumValue(EnumProperty) method when it is called with an argument value of EnumProperty.ContentAlignment.

Members

Member NameDescription
Center

The text is centered.

Left

The text is aligned to the left side.

Right

The text is aligned to the right side.

Requirements

Namespace: System.Windows.Forms.VisualStyles
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0