public enum TextWrapStyleHow a paragraph chooses which of its legal breaks to take. CSS Text 4's text-wrap-style.
Remarks
⚠ A different question from TextWrapMode, and the two are easy to confuse because CSS's text-wrap shorthand sets both. That one is about a word that does not fit at all; this one is about a paragraph all of whose breaks are legal and some of which look better than others. Neither can answer the other's question.
⚠ Both non-default values cost extra wraps of the same paragraph, which is why Auto is the default and stays greedy first-fit. A user interface reflows on every resize and every keystroke; paying for an optimum on text nobody asked to have balanced is the trade this type exists to let an author opt into rather than the one it imposes.
Fields and properties (3)
AutoGreedy first-fit: every line takes as much as it can hold.
BalanceThe same number of lines, as even as they can be made. CSS Text 4's balance.
PrettyNo last line with a single word on it. CSS Text 4's pretty.
Used by (4)
- LineWrapTestsVixen.Ui.Text.Tests
- LineWrapperVixen.Ui.Text
- UiDocumentVixen.Ui
- UiElementVixen.Ui