The FlexEnd
field of the Justify
enum represents a value used to align items at the end of the container. This is equivalent to the justify-content: flex-end;
CSS property, where items are packed toward the end line of the container.
The FlexEnd
field of the Justify
enum represents a value used to align items at the end of the container. This is equivalent to the justify-content: flex-end;
CSS property, where items are packed toward the end line of the container.
Use Justify.FlexEnd
when you want to align child elements of a UI container to the end of the container. This is particularly useful in flexbox layouts where you want the items to be grouped at the end of the container, leaving any extra space at the beginning.
// Example of using Justify.FlexEnd in a UI component var container = new UIContainer(); container.JustifyContent = Justify.FlexEnd; // This will align all child elements to the end of the container container.AddChild(new UILabel("Item 1")); container.AddChild(new UILabel("Item 2")); container.AddChild(new UILabel("Item 3"));