Crainiate Community

Support and discussion for users of Crainiate component software products
Welcome to Crainiate Community Sign in | Join | Help
in Search

about AlignBotton, AlignTop, AlignLeft, AlignRight, AlignCentre and AlignMiddle

Last post 09-18-2007 10:33 PM by James Westgate. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-18-2007 9:59 AM

    about AlignBotton, AlignTop, AlignLeft, AlignRight, AlignCentre and AlignMiddle

    The DoCommand method can implement AlignBotton, AlignTop, AlignLeft, AlignRight, AlignCentre and AlignMiddle for words in the shape, but that couldn’t implement these functions for shape position. I hope to implement these functions for shape position.

    Can you give me some example for this.

     

    thanks

     

    Leo

    • 222.128.3.59
  • 09-18-2007 10:33 PM In reply to

    Re: about AlignBotton, AlignTop, AlignLeft, AlignRight, AlignCentre and AlignMiddle

    Override the DoCommand method, and add commands eg "AlignShapeLeft" Dont forget to call the base implementation.

    Loop through each shape in the Model.SelectedElements collection and store the left most x coordinate

    Then call Model.Suspend and set each shape.X to the value, then cal Model.Resume and Model.Invalidate.

    Filed under: ,
    • 86.157.96.159
Page 1 of 1 (2 items)