How do I change the textwrap for a textbox in an OpenXML presentation object?
How do I change the textwrap for a textbox in an OpenXML presentation object?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try creating a pptx with two textboxes; one with text wrapping and the other without. Then load your pptx in the Open XML SDK 2.0 Productivity Tool, reflect the document and compare the two textboxes.
I tried this and saw that the BodyProperties of the TextBody in the Shape differed. Looks like you can set the Wrap property of the BodyProperties to control wrapping.
Code for textbox with wrapping:
Code for textbox without wrapping: