Esempio n. 1
0
        /// <summary>
        ///     Get a HTML fragment from the clipboard.
        /// </summary>
        /// <example>
        ///     string html = "<b>Hello!</b>";
        ///     HtmlFragment.CopyToClipboard(html);
        ///     HtmlFragment html2 = HtmlFragment.FromClipboard();
        ///     Debug.Assert(html2.Fragment == html);
        /// </example>
        public static HtmlFragment FromClipboard()
        {
            string       rawClipboardText = Clipboard.GetText(TextDataFormat.Html);
            HtmlFragment h = new HtmlFragment(rawClipboardText);

            return(h);
        }
Esempio n. 2
0
 public static void CopyHtmlToClipboard(FixMessage msg)
 {
     HtmlFragment.CopyToClipboard((new TableViewer(msg)).ToHtml());
 }