Shape position information inconsistent among Top, TopRelative, and Selection.get_Information calls.
-
Friday, April 06, 2012 10:28 AM
Reposting here b/c I haven't got a response in the VSTO forum & I have an MSDN subscription (2 day turn around)
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/2da22e9a-3571-4f9a-af81-d8c69a52e43f
Paul Foster
All Replies
-
Monday, April 09, 2012 10:09 AMModeratorHi Paul Foster,
Thank you for posting.
I will help you involve others to help you. There might be some delay about the response. Appreciate your patience.
Best Regards,Bruce Song [MSFT]
MSDN Community Support | Feedback to us
-
Friday, April 13, 2012 6:59 PMModerator
Hello Paul,
This applies to the duplicate thread you entered in the "Visual Studio Tools for Office" Forum.
Thank you for your patience in both Forum threads. The
list of content, and the remarks for several address your question for why you
see three different values for the position of the shape. The most telling is
that the position of a shape is always related to the anchor point - which is
briefly described in two of the topics listed.
Shape.TopRelative Property (Microsoft.Office.Interop.Word)
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.shape.toprelative.aspx
Shape.TopRelative Property (Word) - MSDN – Explore Windows, Web ...
http://msdn.microsoft.com/en-us/library/ff196536.aspx
Shape.RelativeHorizontalPosition Property (Microsoft.Office ...
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.shape.relativehorizontalposition.aspx
Shape Properties (Microsoft.Office.Interop.Word)
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.shape_properties.aspx
See this statement in the following page “A shape is always attached to an anchoring range”:
Shape Object - MSDN – Explore Windows, Web, Cloud, and Windows ...
http://msdn.microsoft.com/en-us/library/aa223088(v=office.11).aspx
Shape.Anchor Property (Word) - MSDN – Explore Windows, Web ...
http://msdn.microsoft.com/en-us/library/ff835500.aspx
Please see the code examples in this page:
RelativeHorizontalPosition Property - MSDN – Explore Windows ...
http://msdn.microsoft.com/en-us/library/aa196492(v=office.11).aspx
Once again, thanks for your patience.
Regards,
Chris Jensen
Senior Technical Support Lead<o:p></o:p>Chris Jensen
- Marked As Answer by pfoster Friday, April 13, 2012 11:53 PM

