EvotecIT / OfficeIMO

Fast and easy to use cross-platform .NET library that creates or modifies Microsoft Word (DocX) and later also Excel (XLSX) files without installing any software. Library is based on Open XML SDK
MIT License
279 stars 49 forks source link

Allow adding lists to Tables/Paragraphs #133

Closed PrzemyslawKlys closed 8 months ago

PrzemyslawKlys commented 1 year ago

As reported in:

It should be possible to add lists to Tables, and that means adding them to Paragraphs.

tmheath commented 8 months ago

I found the addList method of Paragraph, has this feature been implemented or does this add a list proceeding from a paragraph? I'm asking because if this hasn't been implemented then I need to test for this for what I'm working on and depending on things might do some work here to get a PR going.

PrzemyslawKlys commented 8 months ago

Pretty sure it's done:

https://github.com/EvotecIT/OfficeIMO/blob/d8471a948458521d980aed7261abff440d359733/OfficeIMO.Examples/Word/Lists/Lists.Create7.cs#L66-L72

https://github.com/EvotecIT/OfficeIMO/blob/d8471a948458521d980aed7261abff440d359733/OfficeIMO.Examples/Word/Lists/Lists.Create7.cs#L89-L95