AddListItem() public method

Add a list item to an already existing list.
public AddListItem ( Novacode.List list, string listText, int level, ListItemType listType = ListItemType.Numbered, int startNumber = null, bool trackChanges = false, bool continueNumbering = false ) : Novacode.List
list Novacode.List The list to add the new list item to.
listText string The run text that should be in the new list item.
level int The indentation level of the new list element.
listType ListItemType Numbered or Bulleted list type.
startNumber int The number start number for the list.
trackChanges bool Enable change tracking
continueNumbering bool Set to true if you want to continue numbering from the previous numbered list
return Novacode.List
Esempio n. 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);
 }