问题
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