ShapeBaseSizeInPoints Property |
Namespace: Aspose.Words.Drawing
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); builder.InsertImage(ImageDir + "Transparent background logo.png"); // Loop through all single shapes inside document foreach (Shape shape in doc.GetChildNodes(NodeType.Shape, true).OfType<Shape>()) { Console.WriteLine("Shape: " + shape.MarkupLanguage); Console.WriteLine("ShapeSize: " + shape.SizeInPoints); }