简体   繁体   English

屏幕WorkingArea和Bounds的总和有什么区别

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

In the .NET, what is the difference between 在.NET中,两者之间有什么区别

myScreen.WorkingArea.Left + myScreen.WorkingArea.Right  

and

myscreen.Bounds

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. 因此,在第一个实例中,您将使用实际空间,而在第二个可视空间中。

WorkingArea excludes Taskbar (and a few other thinds. see msdn ). WorkingArea不包含任务栏(以及其他一些稀疏项。请参见msdn )。 Bounds includes everything. Bounds包括一切。

WorkingArea is an instance of Rectangle. WorkingArea是Rectangle的一个实例。 Rectangle.Left gives the x coordinate. Rectangle.Left给出x坐标。 Rectangle.Right gives x coordinate + width. Rectangle.Right给出x坐标+宽度。

Adding Left and Right doesn't make too much sense to me. 对我来说,添加“左”和“右”没有太大意义。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM