Description
The AlignItems
property in the Sandbox.UI.BaseStyles
class represents the align-items
CSS property. This property is used to define the default behavior for how flex items are aligned along the cross axis on the current line of a flex container.
Usage
To use the AlignItems
property, you can set it to one of the values defined in the Sandbox.UI.Align
enumeration. These values typically include options like Start
, End
, Center
, Baseline
, and Stretch
. The property is nullable, meaning it can also be set to null
to indicate that no specific alignment is applied.
Example
// Example of setting the AlignItems property
var styles = new BaseStyles();
styles.AlignItems = Align.Center; // Aligns items to the center of the container
// Resetting the AlignItems property
styles.AlignItems = null; // No specific alignment applied