Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        /// <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);
			}
        }