Description
The TextOverflow.None
field is a member of the TextOverflow
enumeration within the Sandbox.UI
namespace. It specifies that overflown text should be displayed without any modification or truncation. This is one of the possible values for the CSS text-overflow
property, which controls how text content that overflows its container is handled.
Usage
Use TextOverflow.None
when you want to ensure that any text that exceeds the boundaries of its container is displayed in full, without any truncation or visual modification. This is useful in scenarios where it is important to display the entire text content, even if it extends beyond the visible area of the UI element.
Example
// Example of using TextOverflow.None in a UI component
var label = new Label();
label.Style.Set("text-overflow", TextOverflow.None);
label.Text = "This is a long text that might overflow its container.";