AddSmartArt
Método ShapeCollection.AddSmartArt
Agregar un diagrama SmartArt.
public ISmartArt AddSmartArt(float x, float y, float width, float height,
SmartArtLayoutType layoutType)
Parámetro | Tipo | Descripción |
---|---|---|
x | Single | La coordenada X para el lado izquierdo del marco del diagrama. |
y | Single | La coordenada Y para el lado izquierdo del marco del diagrama. |
width | Single | El ancho del marco del diagrama. |
height | Single | La altura del marco del diagrama. |
layoutType | SmartArtLayoutType | El tipo de diagrama SmartArt |
Valor de Retorno
Crear un diagrama SmartArt
Ejemplos
El siguiente ejemplo muestra cómo agregar una forma inteligente en una presentación de PowerPoint.
[C#]
using (Presentation pres = new Presentation())
{
Slide slide = pres.Slides[0];
SmartArt smart = slide.Shapes.AddSmartArt(0, 0, 400, 400, SmartArtLayoutType.BasicBlockList);
}
Ver También
- interfaz ISmartArt
- enum SmartArtLayoutType
- clase ShapeCollection
- espacio de nombres Aspose.Slides
- ensamblado Aspose.Slides