SetGeometryPaths()
IGeometryShape::SetGeometryPaths(System::ArrayPtr<System::SharedPtr<IGeometryPath>>) method
Updates shape geometry from array of IGeometryPath. Coordinates must be relative to the left top corner of the shape. Changes the type of the shape (ShapeType) to ShapeType::Custom.
virtual void Aspose::Slides::IGeometryShape::SetGeometryPaths(System::ArrayPtr<System::SharedPtr<IGeometryPath>> geometryPaths)=0
Arguments
Parameter | Type | Description |
---|---|---|
geometryPaths | System::ArrayPtr<System::SharedPtr<IGeometryPath>> | Array geometry paths |
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