Description
The SpaceEvenly
field is a member of the Sandbox.UI.Justify
enumeration. It represents a layout option for the justify-content
CSS property, where items are distributed evenly with equal space around them. This means that the space between any two items, as well as the space before the first item and after the last item, is the same.
Usage
Use Justify.SpaceEvenly
when you want to distribute items in a container with equal spacing between them and at the edges of the container. This is particularly useful in UI design when you want a balanced and symmetrical layout.
Example
// Example of using Justify.SpaceEvenly in a UI layout
var container = new UIContainer();
container.JustifyContent = Justify.SpaceEvenly;
// Add items to the container
container.Add(new UIElement());
container.Add(new UIElement());
container.Add(new UIElement());
// The items will be spaced evenly within the container