コード例 #1
0
        /// <summary>
        /// Executes the table properties.
        /// </summary>
        public void ExecuteTableProperties()
        {
            var table = CurrentSelectionTable as IHTMLTable;

            if (table != null)
            {
                using (var form = new HtmlEditorTableNewForm())
                {
                    form.ExternalInformationProvider = ExternalInformationProvider;

                    form.Table = table;
                    form.ShowDialog(FindForm());
                }
            }
        }
コード例 #2
0
        public void ExecuteInsertTable()
        {
            using (var form = new HtmlEditorTableNewForm())
            {
                form.ExternalInformationProvider = ExternalInformationProvider;

                if (form.ShowDialog(FindForm()) == DialogResult.OK)
                {
                    InsertHtmlAtCurrentSelection(form.Html);
                }
            }
        }