123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- namespace Terminal.Gui;
- /// <summary>
- /// Determines the position of items when arranged in a container.
- /// </summary>
- public enum Alignment
- {
- /// <summary>
- /// The items will be aligned to the start (left or top) of the container.
- /// </summary>
- /// <remarks>
- /// <para>
- /// 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).
- /// </para>
- /// <para>
- /// The <see cref="AlignmentModes"/> enumeration provides additional options for aligning items in a container.
- /// </para>
- /// </remarks>
- /// <example>
- /// <c>
- /// |111 2222 33333 |
- /// </c>
- /// </example>
- Start = 0,
- /// <summary>
- /// The items will be aligned to the end (right or bottom) of the container.
- /// </summary>
- /// <remarks>
- /// <para>
- /// If the container is smaller than the total size of the items, the start items will be clipped (their locations
- /// will be negative).
- /// </para>
- /// <para>
- /// The <see cref="AlignmentModes"/> enumeration provides additional options for aligning items in a container.
- /// </para>
- /// </remarks>
- /// <example>
- /// <c>
- /// | 111 2222 33333|
- /// </c>
- /// </example>
- End,
- /// <summary>
- /// Center in the available space.
- /// </summary>
- /// <remarks>
- /// <para>
- /// If centering is not possible, the group will be left-aligned.
- /// </para>
- /// <para>
- /// Extra space will be distributed between the items, biased towards the left.
- /// </para>
- /// </remarks>
- /// <example>
- /// <c>
- /// | 111 2222 33333 |
- /// </c>
- /// </example>
- Center,
- /// <summary>
- /// The items will fill the available space.
- /// </summary>
- /// <remarks>
- /// <para>
- /// Extra space will be distributed between the items, biased towards the end.
- /// </para>
- /// </remarks>
- /// <example>
- /// <c>
- /// |111 2222 33333|
- /// </c>
- /// </example>
- Fill,
- }
|