Description
The Overflow
property in the Sandbox.UI.BaseStyles
class represents the overflow
CSS property. This property controls what happens to content that is too large to fit into an element's box. It can be set to various values defined in the Sandbox.UI.OverflowMode
enumeration, such as Visible
, Hidden
, Scroll
, or Auto
.
Usage
To use the Overflow
property, you can set it to one of the values from the Sandbox.UI.OverflowMode
enumeration. This will determine how the content that overflows the element's box is handled.
Example
BaseStyles styles = new BaseStyles();
styles.Overflow = OverflowMode.Hidden; // Hides overflow content
styles.Overflow = OverflowMode.Scroll; // Adds scrollbars for overflow content