AddRectangle
ShapeCollection.AddRectangle method
将 RectangleShape 添加到工作表。
public RectangleShape AddRectangle(int upperLeftRow, int top, int upperLeftColumn, int left,
int height, int width)
| 范围 | 类型 | 描述 |
|---|---|---|
| upperLeftRow | Int32 | 左上行索引。 |
| top | Int32 | 表示 RectangleShape 与其左行的垂直偏移量,以像素为单位。 |
| upperLeftColumn | Int32 | 左上列索引。 |
| left | Int32 | 表示 RectangleShape 与其左列的水平偏移量,以像素为单位。 |
| height | Int32 | 表示 RectangleShape 的高度,以像素为单位。 |
| width | Int32 | 表示 RectangleShape 的宽度,以像素为单位。 |
返回值
一个 RectangleShape 对象。
例子
[C#]
// 添加一个矩形
RectangleShape rectangleShape = shapes.AddRectangle(2, 0, 2, 0, 130, 130);
也可以看看
- class RectangleShape
- class ShapeCollection
- 命名空间 Aspose.Cells.Drawing
- 部件 Aspose.Cells