9 instantiations of Screen
System.Windows.Forms (9)
winforms\Managed\System\WinForms\Screen.cs (9)
132
screens = new Screen[] {new
Screen
((IntPtr)PRIMARY_MONITOR)};
217
return new
Screen
((IntPtr)PRIMARY_MONITOR, IntPtr.Zero);
310
return new
Screen
(SafeNativeMethods.MonitorFromPoint(pt, MONITOR_DEFAULTTONEAREST));
313
return new
Screen
((IntPtr)PRIMARY_MONITOR);
329
return new
Screen
(SafeNativeMethods.MonitorFromRect(ref rc, MONITOR_DEFAULTTONEAREST));
332
return new
Screen
((IntPtr)PRIMARY_MONITOR, IntPtr.Zero);
364
return new
Screen
(SafeNativeMethods.MonitorFromWindow(new HandleRef(null, hwnd), MONITOR_DEFAULTTONEAREST));
367
return new
Screen
((IntPtr)PRIMARY_MONITOR, IntPtr.Zero);
493
screens.Add(new
Screen
(monitor, hdc));
65 references to Screen
System.Windows.Forms (61)
winforms\Managed\System\WinForms\CommonDialog.cs (1)
179
Rectangle screen =
Screen
.GetWorkingArea(Control.MousePosition);
winforms\Managed\System\WinForms\ContextMenuStrip.cs (1)
103
Rectangle screenBounds =
Screen
.FromRectangle(bounds).Bounds;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
6447
Rectangle rectScreen =
Screen
.FromControl(this).WorkingArea;
19359
Rectangle rect =
Screen
.GetBounds(pt);
winforms\Managed\System\WinForms\DisplayInformation.cs (1)
42
bitsPerPixel = (short)
Screen
.PrimaryScreen.BitsPerPixel;
winforms\Managed\System\WinForms\Form.cs (11)
4027
Screen
desktop = null;
4031
desktop =
Screen
.FromHandleInternal(ownerHandle);
4034
desktop =
Screen
.FromPoint(Control.MousePosition);
4454
Screen
desktop =
Screen
.FromHandleInternal(ownerHandle);
4490
Screen
desktop = null;
4492
desktop =
Screen
.FromControl(OwnerInternal);
4500
desktop =
Screen
.FromHandleInternal(hWndOwner);
4503
desktop =
Screen
.FromPoint(Control.MousePosition);
5955
Screen
[] screens =
Screen
.AllScreens;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (2)
1639
Rectangle rectScreen =
Screen
.FromControl(Edit).WorkingArea;
1714
Rectangle rectScreen =
Screen
.FromControl(Edit).WorkingArea;
winforms\Managed\System\WinForms\Screen.cs (28)
69
private static
Screen
[] screens;
118
public static
Screen
[] AllScreens {
127
Screen
[] temp = new
Screen
[closure.screens.Count];
132
screens = new
Screen
[] {new Screen((IntPtr)PRIMARY_MONITOR)};
136
screens = new
Screen
[] {PrimaryScreen};
205
public static
Screen
PrimaryScreen {
208
Screen
[] screens = AllScreens;
233
if (currentDesktopChangedCount !=
Screen
.DesktopChangedCount) {
235
Interlocked.Exchange(ref currentDesktopChangedCount,
Screen
.DesktopChangedCount);
290
if (obj is
Screen
) {
291
Screen
comp = (
Screen
)obj;
302
/// Retrieves a <see cref='System.Windows.Forms.
Screen
'/>
307
public static
Screen
FromPoint(Point point) {
320
/// Retrieves a <see cref='System.Windows.Forms.
Screen
'/>
326
public static
Screen
FromRectangle(Rectangle rect) {
339
/// Retrieves a <see cref='System.Windows.Forms.
Screen
'/>
344
public static
Screen
FromControl(Control control) {
351
/// Retrieves a <see cref='System.Windows.Forms.
Screen
'/>
356
public static
Screen
FromHandle(IntPtr hwnd) {
362
internal static
Screen
FromHandleInternal(IntPtr hwnd) {
380
return
Screen
.FromPoint(pt).WorkingArea;
391
return
Screen
.FromRectangle(rect).WorkingArea;
402
return
Screen
.FromControl(ctl).WorkingArea;
413
return
Screen
.FromPoint(pt).Bounds;
423
return
Screen
.FromRectangle(rect).Bounds;
433
return
Screen
.FromControl(ctl).Bounds;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
726
return
Screen
.GetWorkingArea(this.Bounds).Size - this.Padding.Size;
winforms\Managed\System\WinForms\ToolTip.cs (12)
1563
Screen
screen =
Screen
.FromPoint(cursorLocation);
2161
Screen
screen =
Screen
.FromPoint(moveToLocation);
2335
Screen
screen =
Screen
.FromPoint(Cursor.Position);
2442
Screen
screen =
Screen
.FromPoint(cursorPos);
2469
Screen
screen =
Screen
.FromPoint(tt.Position);
2515
Screen
screen =
Screen
.FromPoint(Cursor.Position);
winforms\Managed\System\WinForms\WinFormsUtils.cs (2)
91
return ConstrainToBounds(
Screen
.GetWorkingArea(bounds), bounds);
97
return ConstrainToBounds(
Screen
.FromRectangle(bounds).Bounds, bounds);
System.Workflow.ComponentModel (4)
AuthoringOM\Design\DesignerWidgets.cs (4)
1095
Screen
closestScreen =
Screen
.FromPoint(location);
1302
foreach (
Screen
screen in
Screen
.AllScreens)