I am working on a small method to throw a flag when a Word document has shapes in it. I already have a method that uses the LayoutEnumerator class to list everything in the document.
The best way of finding shapes I have right now is to get the kind of the LayoutEnumerator.
LayoutEnumerator e = new LayoutEnumerator(doc);
if(e.Kind == "SHAPE") //do something;
This doesn't get me far because a lot of things are also considered shapes. Also, 'if(e.Type == ShapeType.Line)' doesn't work either.
Does anybody know what is the best way I could find shapes in a document?