且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

更改对象内部点的位置

更新时间:2022-01-14 08:48:19

您可以做到,但是您必须分配一个新的Point:
You can do it, but you have to either assign a new Point:
myControl.Location = new Point(myControl.Location.X + 10, myControl.Location.Y - 20);


或通过移动顶部和/或左侧属性:


or by moving the Top and / or Left Properties:

myControl.Left += 10;
myControl.Top -= 20;