public static void EmbedHtmlEditingTool(HtmlEditingTool htmlEditingTool, Control parent) { if (htmlEditingTool.IsNull() || parent.IsNull()) { throw new ArgumentNullException(); } htmlEditingTool.Dock = DockStyle.Fill; parent.Controls.Add(htmlEditingTool); }
public static void EmbedHtmlSourceViewer(RichTextBox htmlSourceViewer, Control parent) { if (htmlSourceViewer.IsNull() || parent.IsNull()) { throw new ArgumentNullException(); } htmlSourceViewer.Dock = DockStyle.Fill; htmlSourceViewer.BorderStyle = BorderStyle.None; htmlSourceViewer.ReadOnly = true; htmlSourceViewer.ScrollBars = RichTextBoxScrollBars.Both; parent.Controls.Add(htmlSourceViewer); }