Description |
---|
Excerpt |
---|
Creates a Shape with the specified position and shape type. The specified shape type must not be Picture, Group, Comment, or Unknown. The new shape is automatically added to the Shapes collection. |
Signature | ||||
---|---|---|---|---|
| ||||
public Shape CreateShape(ShapeType type, Anchor aPosition) |
Signature | ||||
---|---|---|---|---|
| ||||
Public Function CreateShape(ByVal type As ShapeType, ByVal aPosition As Anchor) As Shape |
Parameters |
---|
Param | ||||
---|---|---|---|---|
| ||||
A ShapeType value representing the type of shape to create. |
Param | ||||
---|---|---|---|---|
| ||||
An Anchor object representing the position of the new shape in the worksheet. |
Returns |
---|
A Shape object representing the new shape. |