public void ConvertTextboxToTable()
{
// Open the document
Document doc = new Document(MyDir + "Shape.Textbox.doc");
// Convert all shape nodes which contain child nodes.
// We convert the collection to an array as static "snapshot" because the original textboxes will be removed after conversion which will
// invalidate the enumerator.
foreach (Shape shape in doc.GetChildNodes(NodeType.Shape, true).ToArray())
{
if (shape.HasChildNodes)
{
ConvertTextboxToTable(shape);
}
}
doc.Save(MyDir + @"\Artifacts\Table.ConvertTextboxToTable.html");
}