Method Align
Align(int[])
Takes a list of item sizes and returns a list of the positions of those items when aligned within
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
AlignmentSpecifies how the items will be aligned.
alignmentMode
AlignmentModescontainerSize
intThe 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.