UtilDisplayGetScreenFromDeviceName Method
Gets a Screen object that matches the specified device name or friendly display name.
Namespace: DevCase.Core.IO.Devices.DisplayAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Screen GetScreenFromDeviceName(
string name
)
Public Shared Function GetScreenFromDeviceName (
name As String
) As Screen
Dim name As String
Dim returnValue As Screen
returnValue = UtilDisplay.GetScreenFromDeviceName(name)
public:
static Screen^ GetScreenFromDeviceName(
String^ name
)
static member GetScreenFromDeviceName :
name : string -> Screen
No code example is currently available or this language may not be supported.
- name String
-
The display name.
Screen
The resulting
Screen.
This is a code example.
No code example is currently available or this language may not be supported.
Dim name1 As String = "\\.\DISPLAY1"
Dim scr1 As Screen = GetScreenFromDeviceName(name)
Console.WriteLine($"Name: {scr1.DeviceName}")
Dim name2 As String = "Generic PnP Monitor"
Dim scr2 As Screen = GetScreenFromDeviceName(name)
Console.WriteLine($"Name: {scr2.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.