/// <summary> /// 插入超链接事件 /// </summary> private void InsertHyperlinkExecuted(object sender, ExecutedRoutedEventArgs e) { if (htmldoc != null) { HyperlinkDialog d = new HyperlinkDialog(); d.Owner = this.hostedWindow; d.Model = new HyperlinkObject { URL = "http://", Text = htmldoc.Selection.Text }; if (d.ShowDialog() == true) { htmldoc.InsertHyperlick(d.Model); } } }