DocX icon indicating copy to clipboard operation
DocX copied to clipboard

Insert list in a table

Open MrMilo opened this issue 9 years ago • 0 comments

Hi! How do I insert list in a table?

I tried to do:

Novacode.Table testTable = document.AddTable(1, 1);
testTable.Rows[0].Cells[0].Paragraph.First().Append("Testing");

//insert list here
var list = document.AddList(listType: Novacode.ListItemType.Bulleted);
document.AddListItem(list, "testing");
testTable.Rows[0].Cells[0].InsertList(list);

testTable.Rows[0].Cells[0].Paragraph.First().Append("Testing 22");

But the list always appear at the bottom of the document instead of within Testing and Testing 22, why is this?

MrMilo avatar Mar 20 '17 10:03 MrMilo