Method RECT.EnsureInScreen
Overload
Adjusts this rectangle to ensure that whole rectangle is in screen. Initial and final rectangle coordinates are relative to the primary screen.
public void EnsureInScreen(screen screen = default, bool workArea = true)
Parameters
screen (screen)
Use this screen (see screen). If |
workArea (bool)
Use the work area, not whole screen. Default |
Remarks
This function can be used to calculate new window location before creating it. If window already exists, use wnd.EnsureInScreen.