GetGeometryPaths

IGeometryShape.GetGeometryPaths 方法

返回几何形状路径的副本。坐标相对于形状的左上角。

public IGeometryPath[] GetGeometryPaths()

返回值

IGeometryPath 数组

示例

示例:

[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);
}

另请参见