Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
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
C#C#
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}{signature:vb.net
vb.net
}
Public Function CreateShape(ByVal type As ShapeType, ByVal aPosition As Anchor) As Shape
Parameters
Param
typetype

A ShapeType value representing the type of shape to create.

Param
aPositionaPosition

An Anchor object representing the position of the new shape in the worksheet.

Returns
A Shape object representing the new 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}