Question

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

Was it helpful?

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.

OTHER TIPS

If you have powerpoint installed from Microsoft office. You can do the following, though this is not programmatic, but can help you to get the job done.

Steps:

  1. Open ppt

  2. Click on your chart or whatever object you like.

  3. Right click and select or use shortcut CMD + SHIFT + 1 enter image description here

  4. Click on 3rd icons select Size Position, and you can see the following enter image description here

Note:

I'm demoing with Microsoft Powerpoint for Mac Version 2018.

Hope it helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top