GH_GenericLayout

public sealed class GH_GenericLayout
Generic layout logic for rectangle stacks.

Methods

Horizontal_ByIndex

#
Perform left-to-right layout on a list of rectangles starting at the left edge of the layout area. Rectangles are ordered by index. The width of the rectangles is guaranteed to remain the same.
public static List<Rectangle> Horizontal_ByIndex(
Rectangle
area,
Layout area. The right edge is ignored.
List<Rectangle>
stack,
The rectangles to lay out.
expand
If True, the rectangles will be expanded to fill the entire height of the layout area.
)

Horizontal_ByPosition

#
Perform left-to-right layout on a list of rectangles at the left edge of the layout area.
public static List<Rectangle> Horizontal_ByPosition(
Rectangle
area,
Layout area. The right edge is ignored.
List<Rectangle>
stack,
The rectangles to lay out.
expand,
If True, the rectangles will be expanded to fill the entire height of the layout area.
radical
Radical index. The radical represents the special rectangle which takes positioning preference. For example, during Drag operations, the rectangle being dragged is the radical.
)

Horizontal_ByPosition

#
Perform left-to-right layout on a list of rectangles at the left edge of the layout area.
public static List<Rectangle> Horizontal_ByPosition(
Rectangle
area,
Layout area. The right edge is ignored.
List<Rectangle>
stack,
The rectangles to lay out.
expand
If True, the rectangles will be expanded to fill the entire height of the layout area.
)

Vertical_ByIndex

#
Perform top-to-bottom layout on a list of rectangles starting at the upper edge of the layout area. Rectangles are ordered by index. The height of the rectangles is guaranteed to remain the same.
public static List<Rectangle> Vertical_ByIndex(
Rectangle
area,
Layout area. The bottom edge is ignored.
List<Rectangle>
stack,
The rectangles to lay out.
expand
If True, the rectangles will be expanded to fill the entire width of the layout area.
)

Vertical_ByPosition

#
Perform top-to-bottom layout on a list of rectangles at the upper edge of the layout area.
public static List<Rectangle> Vertical_ByPosition(
Rectangle
area,
Layout area. The bottom edge is ignored.
List<Rectangle>
stack,
The rectangles to lay out.
expand,
If True, the rectangles will be expanded to fill the entire width of the layout area.
radical
Radical index. The radical represents the special rectangle which takes positioning preference. For example, during Drag operations, the rectangle being dragged is the radical.
)

Vertical_ByPosition

#
Perform top-to-bottom layout on a list of rectangles at the upper edge of the layout area.
public static List<Rectangle> Vertical_ByPosition(
Rectangle
area,
Layout area. The bottom edge is ignored.
List<Rectangle>
stack,
The rectangles to lay out.
expand
If True, the rectangles will be expanded to fill the entire width of the layout area.
)