Description
The FlexStart
field is a member of the Sandbox.UI.Justify
enumeration. It represents the justify-content: flex-start;
CSS property value, which aligns items at the start of the container. This is useful when you want to align child elements to the beginning of a flex container, leaving any extra space at the end.
Usage
Use Justify.FlexStart
when you want to align items to the start of a flex container. This is typically used in UI layout scenarios where you want elements to be packed at the beginning of a row or column.
Example
// Example of using Justify.FlexStart in a UI component
var container = new UIContainer();
container.Style.JustifyContent = Justify.FlexStart;
// This will align all child elements to the start of the container
container.AddChild(new UIButton("Button 1"));
container.AddChild(new UIButton("Button 2"));