[]
返回表示工作表中新建自动形状的IShape 对象。
IShape AddShapeInPixel(AutoShapeType type, double left, double top, double width, double height)
| Type | Name | Description |
|---|---|---|
| AutoShapeType | type | 指定要创建的自动形状类型。 |
| double | left | 自动形状边框左上角相对于文档左上角的位置(以像素为单位)。 |
| double | top | 自动形状边框左上角相对于文档左上角的位置(以像素为单位)。 |
| double | width | 自动形状边框的宽度和高度,以像素为单位。 |
| double | height | 自动形状边框的宽度和高度,以像素为单位。 |
| Type | Description |
|---|---|
| IShape | IShape 对象。 |
返回表示工作表中新建自动形状的IShape 对象。
IShape AddShapeInPixel(string name, AutoShapeType type, double left, double top, double width, double height)
| Type | Name | Description |
|---|---|---|
| string | name | 形状名称。 |
| AutoShapeType | type | 指定要创建的自动形状类型。 |
| double | left | 自动形状边框左上角相对于文档左上角的位置(以像素为单位)。 |
| double | top | 自动形状边框左上角相对于文档左上角的位置(以像素为单位)。 |
| double | width | 自动形状边框的宽度和高度,以像素为单位。 |
| double | height | 自动形状边框的宽度和高度,以像素为单位。 |
| Type | Description |
|---|---|
| IShape | IShape 对象。 |