Wiki Markup |
---|
{description} {excerpt}Creates a [Shape|Shape] with the specified [position|Shape.Position] and [shape type|ShapeType]. The specified [shape type|ShapeType] must not be [Picture|ShapeType#Picture], [Group|ShapeType#Group], [Comment|ShapeType#Comment], or [Unknown|ShapeType#Unknown]. The new shape is automatically added to the [Shapes|Shapes] collection.{excerpt} {signature:C#} public Shape CreateShape(ShapeType type, Anchor aPosition) {signature}{signature:vb.net} 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} |
Page History
Overview
Content Tools