AddRectangle
ShapeCollection.AddRectangle method
Aggiunge una forma rettangolare al foglio di lavoro.
public RectangleShape AddRectangle(int upperLeftRow, int top, int upperLeftColumn, int left,
int height, int width)
| Parametro | Tipo | Descrizione |
|---|---|---|
| upperLeftRow | Int32 | Indice della riga in alto a sinistra. |
| top | Int32 | Rappresenta l’offset verticale di RectangleShape dalla riga sinistra, in unità di pixel. |
| upperLeftColumn | Int32 | Indice della colonna in alto a sinistra. |
| left | Int32 | Rappresenta l’offset orizzontale di RectangleShape dalla colonna di sinistra, in unità di pixel. |
| height | Int32 | Rappresenta l’altezza di RectangleShape, in unità di pixel. |
| width | Int32 | Rappresenta la larghezza di RectangleShape, in unità di pixel. |
Valore di ritorno
Un oggetto RectangleShape.
Esempi
[C#]
// aggiungi un rettangolo
RectangleShape rectangleShape = shapes.AddRectangle(2, 0, 2, 0, 130, 130);
Guarda anche
- class RectangleShape
- class ShapeCollection
- spazio dei nomi Aspose.Cells.Drawing
- assemblea Aspose.Cells