The WordBreak.Normal
field is a member of the WordBreak
enumeration within the Sandbox.UI
namespace. It specifies that overflowing lines should break at the closest word, aligning with the behavior of the CSS word-break: normal;
property.
The WordBreak.Normal
field is a member of the WordBreak
enumeration within the Sandbox.UI
namespace. It specifies that overflowing lines should break at the closest word, aligning with the behavior of the CSS word-break: normal;
property.
Use WordBreak.Normal
when you want text to wrap at word boundaries, ensuring that words are not split across lines unless absolutely necessary. This is useful for maintaining readability in UI elements where text overflow might occur.
// Example of using WordBreak.Normal in a UI component var textComponent = new TextComponent(); textComponent.Style.WordBreak = WordBreak.Normal; // This will ensure that the text within the component breaks at word boundaries.