# HorizontalAlign struct

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public struct HorizontalAlign
```

> **Obsolete:** Since 2.1: Use TextAlignment instead

Specifies the horizontal alignment for a [Label](https://eto.picoe.ca/api/type/eto.forms.label.md)

## Properties

- [Center](https://eto.picoe.ca/api/type/eto.forms.horizontalalign/center.md): (static) Text will be aligned in the center of the label
- [Left](https://eto.picoe.ca/api/type/eto.forms.horizontalalign/left.md): (static) Text will be aligned to the left
- [Right](https://eto.picoe.ca/api/type/eto.forms.horizontalalign/right.md): (static) Text will be aligned to the right

## Methods

- [Equals](https://eto.picoe.ca/api/type/eto.forms.horizontalalign/equals.md): Determines whether the specified [object](https://learn.microsoft.com/dotnet/api/system.object) is equal to the current [HorizontalAlign](https://eto.picoe.ca/api/type/eto.forms.horizontalalign.md).
- [GetHashCode](https://eto.picoe.ca/api/type/eto.forms.horizontalalign/gethashcode.md): Serves as a hash function for a [HorizontalAlign](https://eto.picoe.ca/api/type/eto.forms.horizontalalign.md) object.

## Operators

- [operator ==](https://eto.picoe.ca/api/type/eto.forms.horizontalalign/op-equality.md): (static) Compares for equality
- [operator !=](https://eto.picoe.ca/api/type/eto.forms.horizontalalign/op-inequality.md): (static) Compares for inequality

## Convertors

- [operator implicit](https://eto.picoe.ca/api/type/eto.forms.horizontalalign/op-implicit.md): (3 overloads, static) Convert from string to vertical align (for json/xaml compat)
