FlexDirection RowReverse

robot_2Generated
code_blocksInput

Description

The RowReverse field of the FlexDirection enum represents a reverse row layout in a flex container. When this value is used, items within the container are aligned from right to left. This is useful for creating layouts where the natural order of items is reversed horizontally.

Usage

Use FlexDirection.RowReverse when you want to align items in a flex container from right to left. This can be particularly useful in right-to-left languages or when you want to reverse the order of items for design purposes.

Example

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

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

// The items will be displayed in reverse order: "Item 3", "Item 2", "Item 1"