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.
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.
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. |
Namespace: System.WinForms
Assembly: System.WinForms.dll