npoi-examples icon indicating copy to clipboard operation
npoi-examples copied to clipboard

XWPF SetText() examples misleading

Open dstringvc opened this issue 2 years ago • 2 comments

Many of the XWPF examples show calling run.SetText() multiple times on the same run. From these examples, I would expect this usage to append text to the run. But, calling SetText() actually replaces the text in the run. I believe the examples should use run.AppendText() on the second and successive calls.

dstringvc avatar Nov 18 '22 16:11 dstringvc