NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HorizontalAlignment Enumeration

Specifies how an object or text in a control is horizontally aligned relative to an element of the control.

[Visual Basic]
Public Enum HorizontalAlignment
[C#]
public enum HorizontalAlignment
[C++]
public enum HorizontalAlignment

[JScript] In JScript, you can use the enumerations in the NGWS frameworks, but you cannot define your own.

Remarks

This enumeration is used in numerous classes. A partial list of these classes is CheckedListBox, ColumnHeader, ComboBox, ControlPaint, DataGridColumn, Label, ListBox, RichControl, RichTextBox, and TextBox.

Members

Member Name Description
Center The object or text is aligned in the center of the control element.
Left The object or text is aligned on the left of the control element.
Right The object or text is aligned on the right of the control element.

Requirements

Namespace: System.WinForms

Assembly: System.WinForms.dll

See Also

System.WinForms Namespace | VerticalAlignment