Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets or returns the Shape's position in the worksheet. This property determines the location of the shape's upper left corner.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public Anchor Position{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property Position() As Anchor</p>Anchor
Remarks

This property determines where in the worksheet the shape is located. Setting it to a new Anchor object will move the shape within the worksheet. This property cannot be used to move shapes between worksheets - if you wish to add the shape to another worksheet, you can use the Shapes.AddShape(Shape) method.

No part of the shape can extend beyond the edge of the worksheet. If you move the shape to a location such that it would extend beyond the edge of the worksheet, the size will be adjusted. For example, if you have a shape that is 10 rows tall and 4 columns wide, and you move it to the last row in the worksheet, the height will be adjusted so that it does not extend past that row.