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}Adds the specified [Shape|Shape] object to the [Shapes|Shapes] collection.{excerpt}
{signature:C#}
 public void AddShape(Shape shape)
{signature}{signature:vb.net}
Public Sub AddShape(ByVal shape As Shape)
{signature}
{parameters}
{param:shape}The {{Shape}} object to add to the collection.{param}
{remarks}
In Office File Format 2007 (.xlsx, .xlsm, etc) files, this will create a copy of the shape and add it to the worksheet. This allows you to add a shape from one workbook to a different workbook, or to create a copy of the shape within a single workbook. The shape's settings will be preserved, and the new shape will be located at the same location in the new worksheet as the original shape was located in its worksheet. If you wish to move it, you can set the [Shape.Position] property to a new location within the worksheet.
{remarks}