This project has moved. For the latest updates, please go here.

Add Hyperlink to List

Jul 17, 2015 at 9:54 AM
Edited Jul 17, 2015 at 12:40 PM
Hi,

I'm trying to add hyperlink to a list, with others listitems that no are hyperlinks.

To add listitems I do this:
var myList = document.AddList(listType: ListItemType.Bulleted);
document.AddListItem(myList, "--------- " + td.Content.ToString() + " ---------");
document.AddListItem(myList, "Text: " + td.Content, 1);
document.AddListItem(myList, "Text: " + td.Content, 1);
document.AddListItem(myList, "Text: " + td.Content, 1);
The next item has a hyperlink, and I try to insert:
Uri url = new Uri("www.someweb.com");
Hyperlink hl = document.AddHyperlink("Hyperlink", url);
myList.AddItem(document.InsertParagraph().InsertHyperlink(hl));
But doesn't works.

How can I do this?

Thanks.