Search code examples
powerpointopenxmlpresentationml

PPT Text x,y,width,height - openxml


I tried following this Presentation ML inheritance chain:

Slide <-- SlideLayout <-- SlideMaster <-- default styles in SlideMaster

to obtain x,y,width,height properties of text content in a PPT Slide but I am not sure whether I am getting correct value. Can you please tell if I am doing the right thing ? Can you also please tell me how to uniquely identify this text object in Slide, SlideLayout & SlideMaster ?

-Thank you


Solution

  • Refer to the following Answer to determine the Height and Width of Text properties.

    For determining if you have the right text, Enter unique text into your slide and use the Open XML Productivity Tool to find it. You can use the tool to search for your unique string in your slide and reflect the code to generate it.

    Lastly, to understand the Presentation Slide XML, I recommend reading the free e-book Open XML Explained to give an explanation of how a correct Presentation document is formed to help you better understand where things should be.