In the .NET, what is the difference between
myScreen.WorkingArea.Left + myScreen.WorkingArea.Right
and
myscreen.Bounds
In the .NET, what is the difference between
myScreen.WorkingArea.Left + myScreen.WorkingArea.Right
and
myscreen.Bounds
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.
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). 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.
© 2022 - 2024 — McMap. All rights reserved.