更改对象内部点的位置 [英] Change location of point inside object

查看:55
本文介绍了更改对象内部点的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮助我吗?

我正在尝试更改对象内部点的位置,例如,它位于对象的左上角.是否可以更改该点的位置?如果可以,怎么办?

Can someone help me?

I am trying to change the the location of the point inside the object, eg it''s on the top left hand corner side of the object. Is it possible to change the location of that point? if so, how?

推荐答案

您可以做到,但是您必须分配一个新的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;


这篇关于更改对象内部点的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆