SetGeometryPaths
IGeometryShape.SetGeometryPaths método
Actualiza la geometría de la forma a partir de un array de IGeometryPath. Las coordenadas deben ser relativas a la esquina superior izquierda de la forma. Cambia el tipo de la forma (ShapeType) a Personalizada.
public void SetGeometryPaths(IGeometryPath[] geometryPaths)
| Parámetro | Tipo | Descripción |
|---|---|---|
| geometryPaths | IGeometryPath[] | Array de rutas de geometría |
Excepciones
| excepción | condición |
|---|---|
| ArgumentException | No se encontró ninguna ruta |
| ArgumentException | Ruta vacía |
Ejemplos
Ejemplo:
[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);
}
Ver También
- interfaz IGeometryPath
- interfaz IGeometryShape
- espacio de nombres Aspose.Slides
- ensamblado Aspose.Slides