📜  c# webbrowser 控件追加 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:08.250000             🧑  作者: Mango

代码示例1
private void AddUrlToTooltip(string url)
{
    if (webBrowser1.Document != null)
    {
        HtmlElement elem = webBrowser1.Document.CreateElement("A");
        elem.SetAttribute("HREF", url);
        elem.InnerText = "Visit our Web site for more details.";

        webBrowser1.Document.Body.AppendChild(elem);
    }
}