GetGeometryPaths

IGeometryShape.GetGeometryPaths method

Returns the copy of path of the geometry shape. Coordinates are relative to the left top corner of the shape.

public IGeometryPath[] GetGeometryPaths()

Return Value

Array of IGeometryPath

Examples

Example:

[C#]
using (Presentation pres = new Presentation())
{
    GeometryShape shape = pres.Slides[0].Shapes.AddAutoShape(ShapeType.Rectangle, 100, 100, 200, 100) as GeometryShape;

    IGeometryPath 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