I need to verify the all images inside the word document with wrap text type is ‘In Line With Text’ or not.
Please use following code example to get the wrap type of shape. Hope this helps you.
Document doc = new Document(MyDir + "input.docx");
foreach (Shape shape in doc.GetChildNodes(NodeType.Shape, true))
{
if (shape.WrapType == WrapType.Inline)
Console.WriteLine("Shape wrap type is inline");
}
Thank you very much…
How to verify the shape is left justified or not?
We suggest you please read the members of Shape class. Please open your document in MS Word and check the shape’s properties. You can get the same properties using Aspose.Words.
It would be great if you please ZIP and attach your input Word document. We will then guide you according to your requirement.