ShapeBaseSizeInPoints Property

Gets the size of the shape in points.

Namespace:  Aspose.Words.Drawing
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.5
public SizeF SizeInPoints { get; }

Property Value

Type: SizeF
Shows how get markup language for shape object in document.
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);
See Also