Method screen.of(+ 7 overloads)
Overload
Gets screen containing the biggest part of the specified window or nearest to it.
public static screen of(wnd w, SODefault defaultScreen = SODefault.Nearest, bool lazy = false)
Parameters
w (wnd)
Window or control. If |
defaultScreen (SODefault) |
lazy (bool)
Create variable with screen.LazyFunc that later will get screen handle. Other ways to create lazy:
|
Returns
Overload(next)
Gets screen containing the biggest part of the specified window or nearest to it.
public static screen of(wndFinder f, SODefault defaultScreen = SODefault.Nearest, bool lazy = true)
Parameters
f (wndFinder)
Window finder. If window not found, gets the primary screen. |
defaultScreen (SODefault) |
lazy (bool)
Create variable with screen.LazyFunc that later will find window and get screen handle. Default |
Returns
Overload(next)
Gets screen containing the biggest part of the specified winforms window or control or nearest to it.
public static screen of(Control c, SODefault defaultScreen = SODefault.Nearest, bool lazy = false)
Parameters
c (Control)
Window or control. If handle not created, gets the primary screen. Cannot be |
defaultScreen (SODefault) |
lazy (bool)
Create variable with screen.LazyFunc that later will get screen handle. |
Returns
Overload(next)
Gets screen containing the biggest part of the specified WPF window or nearest to it.
public static screen of(Window w, SODefault defaultScreen = SODefault.Nearest, bool lazy = false)
Parameters
w (Window)
WPF window. If handle not created, gets the primary screen. Cannot be |
defaultScreen (SODefault) |
lazy (bool)
Create variable with screen.LazyFunc that later will get screen handle. |
Returns
Overload(next)
Gets screen containing the biggest part of the specified WPF element (of its rectangle) or nearest to it.
public static screen of(FrameworkElement elem, SODefault defaultScreen = SODefault.Nearest, bool lazy = false)
Parameters
elem (FrameworkElement)
WPF element. If not loaded, gets the primary screen. Cannot be |
defaultScreen (SODefault) |
lazy (bool)
Create variable with screen.LazyFunc that later will get screen handle. |
Returns
Overload(next)
Gets screen containing the specified point or nearest to it.
public static screen of(POINT p, SODefault defaultScreen = SODefault.Nearest, bool lazy = false)
Parameters
p (POINT) |
defaultScreen (SODefault) |
lazy (bool)
Create variable with screen.LazyFunc that later will get screen handle. |
Returns
Overload(next)
Gets screen containing the specified point or nearest to it.
public static screen of(int x, int y, SODefault defaultScreen = SODefault.Nearest, bool lazy = false)
Parameters
x (int) |
y (int) |
defaultScreen (SODefault) |
lazy (bool)
Create variable with screen.LazyFunc that later will get screen handle. |
Returns
Overload(top)
Gets screen containing the biggest part of the specified rectangle or nearest to it.
public static screen of(RECT r, SODefault defaultScreen = SODefault.Nearest, bool lazy = false)
Parameters
r (RECT) |
defaultScreen (SODefault) |
lazy (bool)
Create variable with screen.LazyFunc that later will get screen handle. |