ContentAlignment Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies how text is aligned in a window caption.

Namespace:   System.Windows.Forms.VisualStyles
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public enum ContentAlignment

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.

The ContentAlignment values represent the return values of the VisualStyleRenderer.GetEnumValue method when it is called with an argument value of EnumProperty.ContentAlignment.

.NET Framework
Available since 2.0
Return to top
Show: