none
Shape End Point Manipulation RRS feed

  • Question

  • I need to open an existing WordprocessingDocument containing a shape (5-point star) edit the points of the star and save it as a new document.  I tried using the productivity tool to compare the documents but it looks like it is showing me how to create a new shape but not really how to edit the points of an existing shape.   Any suggestions? 
    Monday, October 4, 2010 9:40 PM

All replies

  • Hi Hugh,

    If you look at the code generated from teh tool, it will tell you what classes needed in order to get the point/how to add a point. Once you know those classes, you can simply use them in your code to access those points and then change them.

    Basically one you the classes which are used to add shapes, you can:

    1. Get the Shape
    2. Check which class is being used to create the points
    3. From the Shape, try to get the points
    4. Change them

    Please try this and let me know if it works!

    Thanks
    Ankush

     


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Ankush Microsoft Online Community Support
    • Proposed as answer by Ankush_Bhatia Thursday, October 14, 2010 12:23 PM
    Thursday, October 14, 2010 12:23 PM