Class DisplayInfo
The DisplayInfo class is like the Screen class, only not cached.
Inheritance
System.Object
DisplayInfo
Namespace: Dapplo.Windows.User32.Structs
Assembly: Dapplo.Windows.User32.dll
Syntax
public class DisplayInfo : object
Properties
| Improve this Doc View SourceBounds
Screen bounds
Declaration
public RECT Bounds { get; set; }
Property Value
Type | Description |
---|---|
RECT |
DeviceName
Device name
Declaration
public string DeviceName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Index
Index of the Display, as specified in the "control panel".
Declaration
public int ? Index { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
IsPrimary
Is this the primary monitor
Declaration
public bool IsPrimary { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ScreenHeight
Height of the screen
Declaration
public int ScreenHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ScreenWidth
Width of the screen
Declaration
public int ScreenWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
WorkingArea
Desktop working area
Declaration
public RECT WorkingArea { get; set; }
Property Value
Type | Description |
---|---|
RECT |
Methods
| Improve this Doc View SourceGetAllScreenBounds()
Get the bounds of the complete screen
Declaration
public static RECT GetAllScreenBounds()
Returns
Type | Description |
---|---|
RECT |
GetBounds(POINT)
Implementation like Screen.GetBounds
Declaration
public static RECT GetBounds(POINT point)
Parameters
Type | Name | Description |
---|---|---|
POINT | point |
Returns
Type | Description |
---|---|
RECT |