Method Align | Terminal.Gui v2 (original) (raw)

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 withinusing 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 withincontainerSizeusing 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.