NetOffice icon indicating copy to clipboard operation
NetOffice copied to clipboard

Retrieve the custom form behind any form

Open kev-is-coding-for-adn opened this issue 2 years ago • 2 comments

Hello,

I have a technical question. We use custom layouts in our PowerPoint documents and use predefined texts in some textframes in these custom layouts. When adding a new slide based on this custom layout, the predefined text is shown as placeholder in our textframe like it should.

My question is: with NetOffice, how can I retrieve the text of the placeholder? I have looked at the different properties in the Shape model but didn't find anything relevant. The only thing I found is "CustomLayout" in the Slide model, which then leads me to the "original" shape containing the "placeholder" text BUT I can't find any link between this "custom shape" and the one on the slide.

Is this possible? Thanks

kev-is-coding-for-adn avatar Feb 22 '23 06:02 kev-is-coding-for-adn

The slide should have a reference to the CustomLayout it was created with: https://learn.microsoft.com/en-us/office/vba/api/powerpoint.slide.customlayout

jozefizso avatar Feb 22 '23 09:02 jozefizso

As I said, yes, I found the CustomLayout from the slide, but what I want is to find the shape in that CustomLayout that corresponds to the shape in my slide.

kev-is-coding-for-adn avatar Feb 22 '23 10:02 kev-is-coding-for-adn