# HorizontalAlignment

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

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

{% tabs %}
{% tab title="C#" %}

```csharp
public enum HorizontalAlignment : Enum
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Enum HorizontalAlignment As [Enum]
```

{% endtab %}
{% endtabs %}

## Fields

| 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.  |

## Used By

| Name                                                                                                                                                                         | Description                                                                                                                                                                                                                                                                   |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Control.LayoutChildren](https://docs.wisej.com/api/general/control#layoutchildren-dock-spacing-usemargins-halign-valign)                                                    | Arranges all the child [Control](https://docs.wisej.com/api/wisej.web/general/control) using the specified *dock* style, spaced by *spacing* pixels.                                                                                                                          |
| [Control.ScrollControlIntoView](https://docs.wisej.com/api/general/control#scrollcontrolintoview-alignx-aligny)                                                              | Scrolls the control into view in the container using the specified *alignX* and *alignY* preferences.                                                                                                                                                                         |
| [MaskedTextBox.TextAlign](https://docs.wisej.com/api/editors/maskedtextbox#textalign)                                                                                        | Returns or sets how text is aligned in a [TextBox](https://docs.wisej.com/api/wisej.web/editors/wisej.web.textbox) control.                                                                                                                                                   |
| [Panel.HeaderAlignment](https://docs.wisej.com/api/containers/wisej.web.panel#headeralignment)                                                                               | Returns or sets the alignment of the header text in the [Panel](https://docs.wisej.com/api/wisej.web/containers/wisej.web.panel) control.                                                                                                                                     |
| [ScrollableControl.ScrollControlIntoView](https://docs.wisej.com/api/containers/scrollablecontrol#scrollcontrolintoview-control)                                             | Scrolls the specified child *control* into view. using the specified *alignX* and *alignY* preferences.                                                                                                                                                                       |
| [TextBox.TextAlign](https://docs.wisej.com/api/editors/wisej.web.textbox#textalign)                                                                                          | Returns or sets how text is aligned in a [TextBox](https://docs.wisej.com/api/wisej.web/editors/wisej.web.textbox) control.                                                                                                                                                   |
| [UpDownBase.TextAlign](https://docs.wisej.com/api/editors/wisej.web.updownbase#textalign)                                                                                    | Returns or sets the alignment of the text in the spin box (also known as an up-down control).                                                                                                                                                                                 |
| [UpDownBase.UpDownAlign](https://docs.wisej.com/api/editors/wisej.web.updownbase#updownalign)                                                                                | Returns or sets the alignment of the up and down buttons on the spin box (also known as an up-down control).                                                                                                                                                                  |
| [Desktop.TaskbarAlignment](https://docs.wisej.com/api/containers/desktop#taskbaralignment)                                                                                   | Return or sets the alignment of the [Items](https://docs.wisej.com/api/containers/desktop#items) in the taskbar.                                                                                                                                                              |
| [FlexLayoutPanel.HorizontalAlign](https://docs.wisej.com/api/containers/flexlayoutpanel#horizontalalign)                                                                     | Determines the horizontal alignment of the child controls when [LayoutStyle](https://docs.wisej.com/api/containers/flexlayoutpanel#layoutstyle) is set to [Vertical](https://docs.wisej.com/api/containers/flexlayoutpanel/wisej.web.flexlayoutstyle#fields).                 |
| [FlexLayoutPanel.GetAlignX](https://docs.wisej.com/api/containers/flexlayoutpanel#getalignx-control)                                                                         | Determines the horizontal alignment of the child control within the panel when [LayoutStyle](https://docs.wisej.com/api/containers/flexlayoutpanel#layoutstyle) is set to [Vertical](https://docs.wisej.com/api/containers/flexlayoutpanel/wisej.web.flexlayoutstyle#fields). |
| [SlideBar.ScrollControlIntoView](https://docs.wisej.com/api/containers/wisej.web.slidebar#scrollcontrolintoview-control)                                                     | Scrolls the specified child *control* into view. using the specified *alignX* preference.                                                                                                                                                                                     |
| [ColumnHeader.TextAlign](https://docs.wisej.com/api/lists-and-grids/listview/wisej.web.columnheader#textalign)                                                               | Returns or sets the horizontal alignment of the text displayed in the [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview/wisej.web.columnheader).                                                                                                   |
| [StatusBar.TextAlign](https://docs.wisej.com/api/containers/statusbar#textalign)                                                                                             | Returns or sets how text is aligned in a [StatusBar](https://docs.wisej.com/api/wisej.web/containers/statusbar) control.                                                                                                                                                      |
| [StatusBarPanel.Alignment](https://docs.wisej.com/api/containers/statusbar/wisej.web.statusbarpanel#alignment)                                                               | Returns or sets the alignment of text and icons within the status bar panel.                                                                                                                                                                                                  |
| [ControlExtensions.ScrollControlIntoView](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.controlextensions#scrollcontrolintoview-control)           | Scrolls the control into view within its parent container, aligning it according to the specified horizontal and vertical alignment.                                                                                                                                          |
| [UpDownControlExtensions.TextAlign](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.updowncontrolextensions#textalign-updowncontrol-textalign)       | Sets the TextAlign property of the specified UpDown control.                                                                                                                                                                                                                  |
| [UpDownControlExtensions.UpDownAlign](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.updowncontrolextensions#updownalign-updowncontrol-updownalign) | Sets the UpDownAlign property of the specified UpDown control.                                                                                                                                                                                                                |
| [FlexLayoutPanelExtensions.HorizontalAlign](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.flexlayoutpanelextensions#horizontalalign-panel-value)   | Sets the horizontal alignment of the specified [FlexLayoutPanel](https://docs.wisej.com/api/wisej.web/containers/flexlayoutpanel).                                                                                                                                            |
| [FlexLayoutPanelExtensions.AlignX](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.flexlayoutpanelextensions#alignx-panel-control-value)             | Sets the horizontal alignment for a specific control within the specified [FlexLayoutPanel](https://docs.wisej.com/api/wisej.web/containers/flexlayoutpanel).                                                                                                                 |
| [PanelExtensions.HeaderAlignment](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.panelextensions#headeralignment-panel-value)                       | Sets the alignment of the panel's header.                                                                                                                                                                                                                                     |
| [TextBoxExtensions.TextAlign](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.textboxextensions#textalign-textbox-textalign)                         | Sets the horizontal text alignment for the specified [TextBox](https://docs.wisej.com/api/wisej.web/editors/wisej.web.textbox).                                                                                                                                               |
| [ColumnHeaderCollection.Add](https://docs.wisej.com/api/lists-and-grids/listview/wisej.web.listview.columnheadercollection#add-text-width-textalign)                         | Adds a column header to the collection with specified text, width, and alignment settings.                                                                                                                                                                                    |
| [ColumnHeaderCollection.Insert](https://docs.wisej.com/api/lists-and-grids/listview/wisej.web.listview.columnheadercollection#insert-index-header)                           | Creates a new column header and inserts it into the collection at the specified index.                                                                                                                                                                                        |
