what's the difference between the sum of a screens WorkingArea and it's Bounds

巧了我就是萌 提交于 2019-12-11 07:35:16

问题


In the .NET, what is the difference between

myScreen.WorkingArea.Left + myScreen.WorkingArea.Right  

and

myscreen.Bounds

回答1:


Working Area:

Gets the working area of the display. The working area is the desktop area of the display, excluding taskbars, docked windows, and docked tool bars.

Bounds:

Gets the bounds of the display.

So, in the first instance you're working with actual space, while in the second visual space.




回答2:


WorkingArea excludes Taskbar (and a few other thinds. see msdn). Bounds includes everything.

WorkingArea is an instance of Rectangle. Rectangle.Left gives the x coordinate. Rectangle.Right gives x coordinate + width.

Adding Left and Right doesn't make too much sense to me.



来源:https://stackoverflow.com/questions/5797699/whats-the-difference-between-the-sum-of-a-screens-workingarea-and-its-bounds

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!