...
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}{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public Function CreateShape(ByVal type As ShapeType, ByVal aPosition As Anchor) As Shape
{signature}
{parameters}
{param:type}A [ShapeType|ShapeType] value representing the type of shape to create.{param}
{param:aPosition}An [Anchor|Anchor] object representing the position of the new shape in the worksheet.{param}
{returns}A [Shape|Shape] object representing the new shape.{returns}
|
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. |