GetGeometryPaths()
IGeometryShape::GetGeometryPaths() method
Returns the copy of path of the geometry shape. Coordinates are relative to the left top corner of the shape.
virtual System::ArrayPtr<System::SharedPtr<IGeometryPath>> Aspose::Slides::IGeometryShape::GetGeometryPaths()=0
Return Value
Array of IGeometryPath
Remarks
Example:
using namespace System;
using namespace Aspose::Slides;
auto pres = MakeObject<Presentation>();
auto shape = AsCast<GeometryShape>(pres->get_Slides()->idx_get(0)->get_Shapes()->AddAutoShape(ShapeType::Rectangle, 100.0f, 100.0f, 200.0f, 100.0f));
auto geometryPath = shape->GetGeometryPaths()->idx_get(0);
geometryPath->LineTo(100.0f, 50.0f, 1);
geometryPath->LineTo(100.0f, 50.0f, 4);
shape->SetGeometryPath(geometryPath);
pres->Save(u"output.pptx", SaveFormat::Pptx);
See Also
- Typedef ArrayPtr
- Typedef SharedPtr
- Class IGeometryPath
- Class IGeometryShape
- Namespace Aspose::Slides
- Library Aspose.Slides