Table of Contents

Enum Alignment

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Determines the position of items when arranged in a container.

[JsonConverter(typeof(JsonStringEnumConverter<Alignment>))]
public enum Alignment
Extension Methods

Fields

Center = 2

Center in the available space.

If centering is not possible, the group will be left-aligned.

Extra space will be distributed between the items, biased towards the left.

| 111 2222 33333 |

End = 1

The items will be aligned to the end (right or bottom) of the container.

If the container is smaller than the total size of the items, the start items will be clipped (their locations will be negative).

The AlignmentModes enumeration provides additional options for aligning items in a container.

| 111 2222 33333|

Fill = 3

The items will fill the available space.

Extra space will be distributed between the items, biased towards the end.

|111 2222 33333|

Start = 0

The items will be aligned to the start (left or top) of the container.

If the container is smaller than the total size of the items, the end items will be clipped (their locations will be greater than the container size).

The AlignmentModes enumeration provides additional options for aligning items in a container.

|111 2222 33333 |