GetGeometryPaths
GeometryShape.GetGeometryPaths method
返回几何形状路径的副本。 坐标相对于形状的左上角。
public IGeometryPath[] GetGeometryPaths()
返回值
例子
示例:
[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);
}
也可以看看
- interface IGeometryPath
- class GeometryShape
- 命名空间 Aspose.Slides
- 部件 Aspose.Slides