Hi,
I’m looking for some help in dealing with text inside TextBox Shapes. I basically want to got through all TextBox Shapes in a document and see if the text meets a certain format, delete the text. If I try this:
foreach(Aspose.Words.Node node in paragraph.ChildNodes)
{
if (node.NodeType == NodeType.Shape)
{
Aspose.Words.Drawing.Shape shape = node as Aspose.Words.Drawing.Shape;
if (shape.ShapeType == Aspose.Words.Drawing.ShapeType.TextBox)
{
Aspose.Words.Drawing.TextBox textBox = shape.TextBox;
}
}
}
I don’t know how to read the text associated with the TextBox from the object. Would it be Paragraphs? Runs?