Aspose::Words::Drawing::ShapeBase::get_SizeInPoints method
ShapeBase::get_SizeInPoints method
Gets the size of the shape in points.
System::Drawing::SizeF Aspose::Words::Drawing::ShapeBase::get_SizeInPoints()
Examples
Shows how to verify a shape’s size and markup language.
auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
SharedPtr<Shape> shape = builder->InsertImage(ImageDir + u"Transparent background logo.png");
ASSERT_EQ(ShapeMarkupLanguage::Dml, shape->get_MarkupLanguage());
ASPOSE_ASSERT_EQ(System::Drawing::SizeF(300.0f, 300.0f), shape->get_SizeInPoints());
See Also
- Class ShapeBase
- Namespace Aspose::Words::Drawing
- Library Aspose.Words for C++