ScreenExtensionsIsRealPrimaryScreen Method
Namespace: DevCase.Extensions.ScreenExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static bool IsRealPrimaryScreen(
this Screen sender
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function IsRealPrimaryScreen (
sender As Screen
) As Boolean
Dim sender As Screen
Dim returnValue As Boolean
returnValue = sender.IsRealPrimaryScreen()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static bool IsRealPrimaryScreen(
Screen^ sender
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member IsRealPrimaryScreen :
sender : Screen -> bool
No code example is currently available or this language may not be supported.
- sender Screen
-
The source Screen.
Boolean if the source
Screen is the primary device;
otherwise.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Screen. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Dim primaryMonitor As Screen = (Screen.AllScreens().Where(Function(scr As Screen) scr.IsRealPrimaryScreen)).Single()
Dim secondaryMonitor As Screen = (Screen.AllScreens().Where(Function(s As Screen) Not s.IsRealPrimaryScreen)).First()
Console.WriteLine(primaryMonitor.DeviceName)
Console.WriteLine(secondaryMonitor.DeviceName)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.