AddAutoShape
ShapeCollection.AddAutoShape method
Lägger till en AutoShape i kalkylbladet.
public Shape AddAutoShape(AutoShapeType type, int upperLeftRow, int top, int upperLeftColumn,
int left, int height, int width)
Parameter | Typ | Beskrivning |
---|---|---|
type | AutoShapeType | Automatisk formtyp. |
upperLeftRow | Int32 | Övre vänstra radens index. |
top | Int32 | Representerar den vertikala förskjutningen av Shape från dess vänstra rad, i pixelenhet. |
upperLeftColumn | Int32 | Övre vänstra kolumnindex. |
left | Int32 | Representerar den horisontella förskjutningen av Shape från dess vänstra kolumn, i pixelenhet. |
height | Int32 | Representerar höjden på Shape, i pixelenhet. |
width | Int32 | Representerar bredden på Shape, i pixelenhet. |
Returvärde
Ett Shape-objekt.
Anmärkningar
Typen kunde inte vara Chart/Comment/Picture/OleObject/Polygon/DialogBox
Exempel
[C#]
//Lägger till en AutoShape i kalkylbladet.
Shape autoShape = shapes.AddAutoShape(AutoShapeType.Cube, 1, 0, 1, 0, 100, 50);
Se även
- class Shape
- enum AutoShapeType
- class ShapeCollection
- namnutrymme Aspose.Cells.Drawing
- hopsättning Aspose.Cells