Hi im working with c# where i insert a axDrawingControl for Visio…
So now my question, if i insert a visio shape
currentPage.Drop(positionStencil.Masters["Pos1"], 0.8, 4.2);
How can i change the Position of the shape now?
Thx for you help
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Set the PinX and PinY cells. Typically you’ll set these to the center of the new location you want to shape to appear.
(The sample above is for C# in Visual Studio 2010, the code will look a little less clean in Visual Studio 2008)
Just to be complete: You should read up on the LocPinX and LocPinY cells because these affect how PinX and PinY are interpreted. It shouldn’t have any impact on your scenario thought.
If you have to do this for a number of shapes instead of just one, it is more efficient to use the SetFormulas method (available on the Page and Shape object depending on your needs).