Пример #1
0
        private void hyperlinkToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InsertHyperlinkDialog dlgInsertHyperlink = new InsertHyperlinkDialog();

            dlgInsertHyperlink.ShowDialog();

            if (dlgInsertHyperlink.DialogResult == DialogResult.OK)
            {
                string hyperlinkText = dlgInsertHyperlink.HyperlinkText;
                string hyperlinkUrl  = dlgInsertHyperlink.HyperlinkUrl;
                builder.InsertHyperlink(hyperlinkText, hyperlinkUrl);
                modifiedDocument = true;
            }
        }
Пример #2
0
        private void hyperlinkToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InsertHyperlinkDialog dlgInsertHyperlink = new InsertHyperlinkDialog();
            dlgInsertHyperlink.ShowDialog();

            if (dlgInsertHyperlink.DialogResult == DialogResult.OK)
            {
                string hyperlinkText = dlgInsertHyperlink.HyperlinkText;
                string hyperlinkUrl = dlgInsertHyperlink.HyperlinkUrl;
                builder.InsertHyperlink(hyperlinkText, hyperlinkUrl);
                modifiedDocument = true;
            }
        }