I've written an application that parses all TextRanges in Master, CustomLayouts and Slides using automation.
This works great, but I've noticed that I get the text "<#>" where the current slide number is supposed to be displayed (as it shows when you switch to Master View).
My question is: do I have a way to programmatically identify the "field" used to display the slide number, so that I can process it and replace it with the correct value? Or can I retrieve the "computed" value directly from a slide?
I first thought of identifying the "field" by looking for "<#>" in the TextRange, but this isn't a reliable method as this "field" reads as "<N°>" in French and "<Nr.>" in German for instance. I can see that in PowerPoint the field isn't plain text and is highlighted when you select it. So what kind of "object" is this <#> exactly? How does PowerPoint identifies it as a "field"/"tag"/"whatever"?