Table of Contents

Method Align

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Align(int[])

Takes a list of item sizes and returns a list of the positions of those items when aligned within using the Alignment and AlignmentModes settings.

public int[] Align(int[] sizes)

Parameters

sizes int[]

The sizes of the items to align.

Returns

int[]

The locations of the items, from left/top to right/bottom.

Align(in Alignment, in AlignmentModes, in int, in int[])

Takes a list of item sizes and returns a list of the positions of those items when aligned within containerSize using specified parameters.

public static int[] Align(in Alignment alignment, in AlignmentModes alignmentMode, in int containerSize, in int[] sizes)

Parameters

alignment Alignment

Specifies how the items will be aligned.

alignmentMode AlignmentModes
containerSize int

The size of the container.

sizes int[]

The sizes of the items to align.

Returns

int[]

The positions of the items, from left/top to right/bottom.