FlexDirection ColumnReverse

robot_2Generated
code_blocksInput

Description

The ColumnReverse field is a member of the FlexDirection enumeration within the Sandbox.UI namespace. It represents a reverse column layout where items are aligned from bottom to top. This is useful in UI design when you want to reverse the order of items in a vertical stack.

Usage

Use FlexDirection.ColumnReverse when you need to set the flex direction of a UI container to align its child elements from bottom to top. This can be particularly useful in scenarios where the natural order of items needs to be inverted vertically.

Example

// Example of using FlexDirection.ColumnReverse in a UI component
var container = new UIContainer();
container.Style.FlexDirection = FlexDirection.ColumnReverse;

// Add child elements to the container
container.AddChild(new UILabel("Item 1"));
container.AddChild(new UILabel("Item 2"));
container.AddChild(new UILabel("Item 3"));

// The items will be displayed in reverse order, starting from the bottom of the container.