Layout

public static class Layout
Provides static methods for layout out axis aligned boxes.

Methods

AlignBottom

#
public static void AlignBottom(RectangleF[] boxes, float bottom)
Align all boxes in an array so they all share the same right-coordinate.
boxes (RectangleF[])Boxes to align.
bottom (float)Bottom coordinate to align with.

AlignBottom

#
public static void AlignBottom(RectangleF[] boxes)
Align all boxes in an array so they all share the same, highest, right-coordinate.
boxes (RectangleF[])Boxes to align.

AlignLeft

#
public static void AlignLeft(RectangleF[] boxes, float left)
Align all boxes in an array so they all share the same left-coordinate.
boxes (RectangleF[])Boxes to align.
left (float)Left coordinate to align with.

AlignLeft

#
public static void AlignLeft(RectangleF[] boxes)
Align all boxes in an array so they all share the same, lowest, left-coordinate.
boxes (RectangleF[])Boxes to align.

AlignMiddleX

#
public static void AlignMiddleX(RectangleF[] boxes, float middle)
Align all boxes in an array so they all share the same middle-x-coordinate.
boxes (RectangleF[])Boxes to align.
middle (float)Middle coordinate to align with.

AlignMiddleX

#
public static void AlignMiddleX(RectangleF[] boxes)
Align all boxes in an array so they all share the same, average, middle-x-coordinate.
boxes (RectangleF[])Boxes to align.

AlignMiddleY

#
public static void AlignMiddleY(RectangleF[] boxes, float middle)
Align all boxes in an array so they all share the same middle-y-coordinate.
boxes (RectangleF[])Boxes to align.
middle (float)Middle coordinate to align with.

AlignMiddleY

#
public static void AlignMiddleY(RectangleF[] boxes)
Align all boxes in an array so they all share the same, average, middle-y-coordinate.
boxes (RectangleF[])Boxes to align.

AlignRight

#
public static void AlignRight(RectangleF[] boxes, float right)
Align all boxes in an array so they all share the same right-coordinate.
boxes (RectangleF[])Boxes to align.
right (float)Bottom coordinate to align with.

AlignRight

#
public static void AlignRight(RectangleF[] boxes)
Align all boxes in an array so they all share the same, highest, right-coordinate.
boxes (RectangleF[])Boxes to align.

AlignTop

#
public static void AlignTop(RectangleF[] boxes, float top)
Align all boxes in an array so they all share the same right-coordinate.
boxes (RectangleF[])Boxes to align.
top (float)Top coordinate to align with.

AlignTop

#
public static void AlignTop(RectangleF[] boxes)
Align all boxes in an array so they all share the same, lowest, right-coordinate.
boxes (RectangleF[])Boxes to align.

Bounds

#
public static Rectangle Bounds(params Rectangle[] boxes)
Gets the bounding box for a collection of boxes.
boxes (params Rectangle[])

Bounds

#
public static RectangleF Bounds(params RectangleF[] boxes)
Gets the bounding box for a collection of boxes.
boxes (params RectangleF[])

StackHorizontal

#
public static RectangleF[] StackHorizontal(PointF pivot, LayoutPadding padding, params SizeF[] sizes)
Stack a set of boxes horizontally starting from a pivot location.
pivot (PointF)Pivot (leftmost point on centre-line).
padding (LayoutPadding)Padding data.
sizes (params SizeF[])Sizes of boxes to stack.
Array of stacked boxes.

StackHorizontal

#
public static void StackHorizontal(PointF pivot, LayoutPadding padding, SizeF size1, out RectangleF box1, SizeF size2, out RectangleF box2, SizeF size3, out RectangleF box3, SizeF size4, out RectangleF box4, SizeF size5, out RectangleF box5)
Stack a set of boxes horizontally starting from a pivot location.
pivot (PointF)Pivot (leftmost point on centre-line).
padding (LayoutPadding)Padding data.
size1 (SizeF)First box size.
box1 (out RectangleF)First stacked box.
size2 (SizeF)Second box size.
box2 (out RectangleF)Second stacked box.
size3 (SizeF)Third box size.
box3 (out RectangleF)Third stacked box.
size4 (SizeF)Fourth box size.
box4 (out RectangleF)Fourth stacked box.
size5 (SizeF)Fifth box size.
box5 (out RectangleF)Fifth stacked box.

StackHorizontal

#
public static void StackHorizontal(PointF pivot, LayoutPadding padding, SizeF size1, out RectangleF box1, SizeF size2, out RectangleF box2, SizeF size3, out RectangleF box3, SizeF size4, out RectangleF box4)
Stack a set of boxes horizontally starting from a pivot location.
pivot (PointF)Pivot (leftmost point on centre-line).
padding (LayoutPadding)Padding data.
size1 (SizeF)First box size.
box1 (out RectangleF)First stacked box.
size2 (SizeF)Second box size.
box2 (out RectangleF)Second stacked box.
size3 (SizeF)Third box size.
box3 (out RectangleF)Third stacked box.
size4 (SizeF)Fourth box size.
box4 (out RectangleF)Fourth stacked box.

StackHorizontal

#
public static void StackHorizontal(PointF pivot, LayoutPadding padding, SizeF size1, out RectangleF box1, SizeF size2, out RectangleF box2, SizeF size3, out RectangleF box3)
Stack a set of boxes horizontally starting from a pivot location.
pivot (PointF)Pivot (leftmost point on centre-line).
padding (LayoutPadding)Padding data.
size1 (SizeF)First box size.
box1 (out RectangleF)First stacked box.
size2 (SizeF)Second box size.
box2 (out RectangleF)Second stacked box.
size3 (SizeF)Third box size.
box3 (out RectangleF)Third stacked box.

StackHorizontal

#
public static void StackHorizontal(PointF pivot, LayoutPadding padding, SizeF size1, out RectangleF box1, SizeF size2, out RectangleF box2)
Stack a set of boxes horizontally starting from a pivot location.
pivot (PointF)Pivot (leftmost point on centre-line).
padding (LayoutPadding)Padding data.
size1 (SizeF)First box size.
box1 (out RectangleF)First stacked box.
size2 (SizeF)Second box size.
box2 (out RectangleF)Second stacked box.

StackHorizontal

#
public static void StackHorizontal(PointF pivot, LayoutPadding padding, SizeF size1, out RectangleF box1)
Stack a set of boxes horizontally starting from a pivot location.
pivot (PointF)Pivot (leftmost point on centre-line).
padding (LayoutPadding)Padding data.
size1 (SizeF)First box size.
box1 (out RectangleF)First stacked box.

StackVertical

#
public static RectangleF[] StackVertical(PointF pivot, LayoutPadding padding, params SizeF[] sizes)
Stack a set of boxes vertically starting from a pivot location.
pivot (PointF)Pivot (topmost point on centre-line).
padding (LayoutPadding)Padding data.
sizes (params SizeF[])Sizes of boxes to stack.
Array of stacked boxes.

StackVertical

#
public static void StackVertical(PointF pivot, LayoutPadding padding, SizeF size1, out RectangleF box1, SizeF size2, out RectangleF box2, SizeF size3, out RectangleF box3, SizeF size4, out RectangleF box4, SizeF size5, out RectangleF box5)
Stack a set of boxes vertically starting from a pivot location.
pivot (PointF)Pivot (topmost point on centre-line).
padding (LayoutPadding)Padding data.
size1 (SizeF)First box size.
box1 (out RectangleF)First stacked box.
size2 (SizeF)Second box size.
box2 (out RectangleF)Second stacked box.
size3 (SizeF)Third box size.
box3 (out RectangleF)Third stacked box.
size4 (SizeF)Fourth box size.
box4 (out RectangleF)Fourth stacked box.
size5 (SizeF)Fifth box size.
box5 (out RectangleF)Fifth stacked box.

StackVertical

#
public static void StackVertical(PointF pivot, LayoutPadding padding, SizeF size1, out RectangleF box1, SizeF size2, out RectangleF box2, SizeF size3, out RectangleF box3, SizeF size4, out RectangleF box4)
Stack a set of boxes vertically starting from a pivot location.
pivot (PointF)Pivot (topmost point on centre-line).
padding (LayoutPadding)Padding data.
size1 (SizeF)First box size.
box1 (out RectangleF)First stacked box.
size2 (SizeF)Second box size.
box2 (out RectangleF)Second stacked box.
size3 (SizeF)Third box size.
box3 (out RectangleF)Third stacked box.
size4 (SizeF)Fourth box size.
box4 (out RectangleF)Fourth stacked box.

StackVertical

#
public static void StackVertical(PointF pivot, LayoutPadding padding, SizeF size1, out RectangleF box1, SizeF size2, out RectangleF box2, SizeF size3, out RectangleF box3)
Stack a set of boxes vertically starting from a pivot location.
pivot (PointF)Pivot (topmost point on centre-line).
padding (LayoutPadding)Padding data.
size1 (SizeF)First box size.
box1 (out RectangleF)First stacked box.
size2 (SizeF)Second box size.
box2 (out RectangleF)Second stacked box.
size3 (SizeF)Third box size.
box3 (out RectangleF)Third stacked box.

StackVertical

#
public static void StackVertical(PointF pivot, LayoutPadding padding, SizeF size1, out RectangleF box1, SizeF size2, out RectangleF box2)
Stack a set of boxes vertically starting from a pivot location.
pivot (PointF)Pivot (topmost point on centre-line).
padding (LayoutPadding)Padding data.
size1 (SizeF)First box size.
box1 (out RectangleF)First stacked box.
size2 (SizeF)Second box size.
box2 (out RectangleF)Second stacked box.

StackVertical

#
public static void StackVertical(PointF pivot, LayoutPadding padding, SizeF size1, out RectangleF box1)
Stack a set of boxes vertically starting from a pivot location.
pivot (PointF)Pivot (topmost point on centre-line).
padding (LayoutPadding)Padding data.
size1 (SizeF)First box size.
box1 (out RectangleF)First stacked box.