I am trying to extract text from specific text boxes in a PowerPoint template to fill a web form using OpenXml and C#.
So far, what I have seen online iterates through all text boxes using Slide.Descendants<TextBody>()
in a foreach
loop, or selects only the first or last text box using Slide.Descendants<TextBody>().First()
.
If I know that the text I am looking for is contained in say textBody10, is there a way for me to access that text body directly, or is there a way to identify the name of a given textbody within the foreach loop?