InsertList() public method

Insert list into the document.
public InsertList ( Novacode.List list ) : Novacode.List
list Novacode.List The list to insert into the document.
return Novacode.List
Example #1
0
 private static void CreateList(DocX doc)
 {
     var list = doc.AddList("Properly structured and follow all good OOP practices", 0, ListItemType.Bulleted);
     doc.AddListItem(list, "Awesome");
     doc.AddListItem(list, "..Very Awesome");
     doc.InsertList(list);
 }