/// <summary> /// Splits the text into words and saves the result /// </summary> private void UpdateWords() { Words.Clear(); CssBoxWordSplitter splitter = new CssBoxWordSplitter(this, Text); splitter.SplitWords(); Words.AddRange(splitter.Words); }
/// <summary> /// Splits the text into words and saves the result /// </summary> private void UpdateWords() { Words.Clear(); if (WhiteSpace == CssConstants.Nowrap) { CssBoxWord b = new CssBoxWord(this); b.Text = Text; Words.Add(b); } else { CssBoxWordSplitter splitter = new CssBoxWordSplitter(this, Text); splitter.SplitWords(); Words.AddRange(splitter.Words); } }