Control的Region属性

 今天在反编译.net framework的时候,发现Control有个Region属性,查了一下文档,定义是:The window region is a collection of pixels within the window where the operating system permits drawing. The operating system does not display any portion of a window that lies outside of the window region. 也就是操作系统只显示Region里的区域,而且,它并不接受Region以为的区域的Mouse事件。

  .net framework 的design-time的Selected UI正是由它来实现的。在design-time下,一个Control被选中后,会有一个选中框,鼠标移上去后,会有Resizable或Moveable的效果。在DesignFrame上覆盖了一个透明的Control,Control的Region是所有被选中的Controls的选择框区域,由这个Control负责绘制选择框,并处理选择框区域的Mouse事件。

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值