Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
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}