Description
The OverflowX
property in the BaseStyles
class represents the overflow-x
CSS property. This property controls what happens to content that is too large to fit into the element's box along the horizontal axis. It can be set to values such as visible
, hidden
, scroll
, or auto
, which determine how the overflow content is handled.
Usage
To use the OverflowX
property, you can set it to a value from the OverflowMode
enumeration, which includes options like Visible
, Hidden
, Scroll
, and Auto
. This property is nullable, meaning it can also be set to null
to remove any specific overflow-x setting.
Example
// Example of setting the OverflowX property
var styles = new BaseStyles();
styles.OverflowX = OverflowMode.Hidden; // Hides overflow content along the x-axis
// Resetting the OverflowX property
styles.OverflowX = null; // Removes the overflow-x setting