The FlexDirection
property in the BaseStyles
class represents the flex-direction
CSS property. This property specifies how flex items are placed in the flex container, defining the main axis and the direction (normal or reversed).
The FlexDirection
property in the BaseStyles
class represents the flex-direction
CSS property. This property specifies how flex items are placed in the flex container, defining the main axis and the direction (normal or reversed).
To use the FlexDirection
property, you can set it to one of the values defined in the Sandbox.UI.FlexDirection
enumeration. This property is nullable, meaning it can be set to null
to remove the flex-direction setting.
// Example of setting the FlexDirection property BaseStyles styles = new BaseStyles(); styles.FlexDirection = FlexDirection.Row; // Sets the flex direction to row // To remove the flex-direction setting styles.FlexDirection = null;