예제 #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);
        }
예제 #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);
			}
        }