IGeometryShapeSetGeometryPaths 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
Custom.
Namespace:
Aspose.Slides
Assembly:
Aspose.Slides (in Aspose.Slides.dll) Version: 22.5.0.0 (22.5)
Syntaxvoid SetGeometryPaths(
IGeometryPath[] geometryPaths
)
Sub SetGeometryPaths (
geometryPaths As IGeometryPath()
)
void SetGeometryPaths(
array<IGeometryPath^>^ geometryPaths
)
abstract SetGeometryPaths :
geometryPaths : IGeometryPath[] -> unit
Parameters
- geometryPaths
- Type: Aspose.SlidesIGeometryPath
Array geometry paths
Exceptions
Examples
Example:
[C#]
using (Presentation pres = new Presentation())
{
GeometryShape shape = pres.Slides[0].Shapes.AddAutoShape(ShapeType.Rectangle, 100, 100, 200, 100) as GeometryShape;
GeometryPath geometryPath = shape.GetGeometryPaths()[0];
geometryPath.LineTo(100, 50, 1);
geometryPath.LineTo(100, 50, 4);
shape.SetGeometryPath(geometryPath);
pres.Save("output.pptx", SaveFormat.Pptx);
}
See Also