SizeInPoints

ShapeBase.SizeInPoints property

Gets the size of the shape in points.

public SizeF SizeInPoints { get; }

Examples

Shows how to verify a shape’s size and markup language.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

Shape shape = builder.InsertImage(ImageDir + "Transparent background logo.png");

Assert.AreEqual(ShapeMarkupLanguage.Dml, shape.MarkupLanguage);
Assert.AreEqual(new SizeF(300, 300), shape.SizeInPoints);

See Also