/// <summary>
 /// Insert seperate excuted
 /// </summary>
 private void InsertSeperateExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     if (htmldoc != null)
     {
         var seperateText = new SeperateObject {
             Text = htmldoc.Selection.Text
         };
         htmldoc.InsertSeperate(seperateText);
     }
 }
 public void InsertBlankSeperate()
 {
     if (htmldoc != null)
     {
         var seperateText = new SeperateObject {
             Text = htmldoc.Selection.Text
         };
         htmldoc.InsertSeperate(seperateText);
     }
 }
示例#3
0
        /// <summary>
        /// Trung:Insert seperate at cursor posion and format the seperate that you want.
        /// </summary>
        public static void InsertSeperate(this HtmlDocument document, SeperateObject seperate)
        {
            var txt = seperate.Text.HtmlEncoding();

            if (string.IsNullOrEmpty(txt))
            {
                txt = Constants.QuestionKeyForBlank;
            }
            string tx = string.Format("<font color=blue>{0}</font> ", txt);

            document.InsertHTML(tx);
        }