robot_2Generated
code_blocksInput

Description

The Row field of the FlexDirection enum represents a layout direction where items are aligned from left to right. This is equivalent to the CSS flex-direction: row; property, commonly used in web development to arrange elements in a horizontal line.

Usage

Use FlexDirection.Row when you want to arrange UI elements horizontally in a row. This is particularly useful in responsive designs where you need to control the flow of elements based on the available space.

Example

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

var item1 = new Panel();
var item2 = new Panel();

container.AddChild(item1);
container.AddChild(item2);

// This will arrange item1 and item2 from left to right within the container.