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

...

Description

Excerpt

Adds the specified Shape object to the Shapes collection.

Signature
C#
C#
 public void AddShape(Shape shape)
{signature}{signature:
}
Signature
vb.net
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 
Parameters
Param
shape
shape

The Shape object to add to the collection.

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}