public Hyperlink AddHyperlink(string text, Uri uri)
{
XElement i = new XElement
(
XName.Get("hyperlink", w.NamespaceName),
new XAttribute(r + "id", string.Empty),
new XAttribute(w + "history", "1"),
new XElement(XName.Get("r", w.NamespaceName),
new XElement(XName.Get("rPr", w.NamespaceName),
new XElement(XName.Get("rStyle", w.NamespaceName),
new XAttribute(w + "val", "Hyperlink"))),
new XElement(XName.Get("t", w.NamespaceName), text))
);
Hyperlink h = new Hyperlink(this, mainPart, i);
h.text = text;
h.uri = uri;
AddHyperlinkStyleIfNotPresent();
return h;
}