# BaselineAlignment

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/enum-baselinealignment/

**enum** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
enum BaselineAlignment
```

Enum specifying where a box should be positioned vertically.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/baseline_alignment.rs#L3)

## Members

- [`Top`](#variant-top)
- [`Center`](#variant-center)
- [`Bottom`](#variant-bottom)
- [`Baseline`](#variant-baseline)
- [`TextTop`](#variant-texttop)
- [`TextBottom`](#variant-textbottom)
- [`Subscript`](#variant-subscript)
- [`Superscript`](#variant-superscript)

<a id="variant-top"></a>

### Top

```rust
Top
```

Align top toward the top of the container.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/baseline_alignment.rs#L5)

<a id="variant-center"></a>

### Center

```rust
Center
```

Center vertically.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/baseline_alignment.rs#L7)

<a id="variant-bottom"></a>

### Bottom

```rust
Bottom
```

Align bottom toward the bottom of the container.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/baseline_alignment.rs#L9)

<a id="variant-baseline"></a>

### Baseline

```rust
Baseline
```

Align at the baseline.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/baseline_alignment.rs#L12)

<a id="variant-texttop"></a>

### TextTop

```rust
TextTop
```

Align toward the text's top of the container.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/baseline_alignment.rs#L14)

<a id="variant-textbottom"></a>

### TextBottom

```rust
TextBottom
```

Align toward the text's bottom of the container.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/baseline_alignment.rs#L16)

<a id="variant-subscript"></a>

### Subscript

```rust
Subscript
```

Align the baseline to the subscript position of the container.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/baseline_alignment.rs#L18)

<a id="variant-superscript"></a>

### Superscript

```rust
Superscript
```

Align the baseline to the superscript position of the container.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/baseline_alignment.rs#L20)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
