DocX icon indicating copy to clipboard operation
DocX copied to clipboard

How can I change a textbox content?

Open AloysiusChua0822 opened this issue 1 year ago • 1 comments

AloysiusChua0822 avatar Jun 23 '24 01:06 AloysiusChua0822

Hello,

TextBoxes are only part of the Xceed Words for .NET, the commercial version of DocX. In that version, you have a property in Paragraph : TextBoxes, which returns the list of TextBox for a paragraph. You also have a method in Document: AddTextBox(), which create a new TextBox that you can insert in a paragraph with Paragraph.InsertShape(). At this moment, you can't modify a TextBox content, but as a workaround, you can remove the original TextBox and add the new one. We will work on modifying the TextBox content You can try it Xceed Words for .NET here: https://xceed.com/en/our-products/product/words-for-net

Thank you

XceedBoucherS avatar Jun 25 '24 11:06 XceedBoucherS

Thanks a lot!

AloysiusChua0822 avatar Sep 04 '24 06:09 AloysiusChua0822