Description
The Display
property in the BaseStyles
class represents the display
CSS property. It determines the display behavior of an element, such as whether it is block, inline, flex, grid, etc. This property is nullable, meaning it can be set to a specific DisplayMode
value or left unset.
Usage
To use the Display
property, you can set it to a value from the DisplayMode
enumeration, which includes options like Block
, Inline
, Flex
, and others. This allows you to control how an element is displayed within its parent container.
Example
BaseStyles styles = new BaseStyles();
styles.Display = DisplayMode.Flex; // Sets the display mode to flex
// To unset the display property
styles.Display = null;