コード例 #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
ファイル: CssBox.cs プロジェクト: BDizzle/System.Drawing.Html
        /// <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);
			}
        }