Hi!
I’m having some trouble to extract multiple textboxes from a single Drawing Shape. I’m using the following code to do so:
foreach (Node shapeNode in shape.ChildNodes)
{
Paragraph paragraph = (Paragraph)shapeNode;
foreach (Run run in paragraph.ChildNodes)
{
if (run != null && run.HasInnerText)
{
String text = run.Text;
}
The question is: how can I make sure that the text I’m getting is from a Drawing Shape with a single textbox or if there are more than one textboxes inside that Drawing Shape? Because when testing with my doc both situations showed the same behavior, so I couldn’t tell the difference.
I’m attaching the doc I just mentioned. Just to make it clear, I wanna know in the extracting process that the paragraph “Textbox2 line1” is in a different Textbox than “Textbox1 line1” and “Textbox1 line2”
Please help!