The Clip
field is a member of the TextOverflow
enumeration within the Sandbox.UI
namespace. It specifies that overflowing text should be visually cut off, without any indication that the text is truncated.
The Clip
field is a member of the TextOverflow
enumeration within the Sandbox.UI
namespace. It specifies that overflowing text should be visually cut off, without any indication that the text is truncated.
Use TextOverflow.Clip
when you want to ensure that any text exceeding the bounds of its container is simply hidden, without any additional visual cues like ellipses. This is useful for maintaining a clean and uncluttered UI where the full text is not critical to the user.
// Example of using TextOverflow.Clip in a UI component var label = new Label(); label.Style.Set("text-overflow", TextOverflow.Clip); label.Text = "This is a very long text that will be clipped if it overflows the container.";