Exemple #1
0
        private void selectAllToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CanvasTabPage activeChild = (CanvasTabPage)pageContainerControl.SelectedTab;

            if (activeChild == null)
            {
                return;
            }
            if (activeChild.getSelectedTab().Equals("browser"))
            {
                activeChild.htmlEditor1.HtmlDocument2.ExecCommand("selectall", false, null);
            }
            else if (activeChild.getSelectedTab().Equals("editor"))
            {
                activeChild.textBox1.SelectAll();
            }
        }
Exemple #2
0
        private void italicButton_Click(object sender, EventArgs e)
        {
            CanvasTabPage activeChild = (CanvasTabPage)pageContainerControl.SelectedTab;

            if (activeChild == null)
            {
                return;
            }

            if (activeChild.getSelectedTab().Equals("browser"))
            {
                activeChild.htmlEditor1.HtmlDocument2.ExecCommand("italic", false, null);
            }
        }