I am still trying to get my program to work with .Net Rectangle shape. My question is this. If you change X,Y,Width or Height of a Rectangle, will it automatically change other properties of a Rectangle such as Top/Bottom/Right/Left.

For instance, if I want the Right property of a rectangle changed can I do the following.

e: System.Windows.Forms.MouseEventArgs;
dragRect.width := e.X - dragRect.X;

Thanks in advance.

1

There are 1 answers

1
Nicole Calinoiu On BEST ANSWER

Yes, it will. The get-only properties on Rectangle are inferred from the settable properties.