public sealed class UtilDisplayPublic NotInheritable Class UtilDisplay
Dim instance As UtilDisplaypublic ref class UtilDisplay sealed[<SealedAttribute>]
type UtilDisplay = class endNo code example is currently available or this language may not be supported.| CloneDisplays | Turns the current connected monitors to cloned view. |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| ExtendDisplays | Turns the current connected monitors to extended view. |
| GetCurrentDisplayResolutionMode | Gets a DisplayResolutionMode that represents the display resolution configuration for the specified Screen. |
| GetDeviceModeFromDisplayDevice | Gets a DevMode that represents the specified DisplayDevice. |
| GetDeviceModeFromScreen | Gets a DevMode that represents the specified Screen. |
| GetDisplayDeviceFromScreen | Gets a DisplayDevice that represents the specified Screen. |
| GetDisplayDevices | Gets a collection of DisplayDevice that represents all display devices connected to the current machine. |
| GetDisplayResolutionModes | Gets a ReadOnlyCollectionT that represents all the available display resolution configurations for the specified Screen. |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetRealPrimaryScreen | Gets a Screen object that represents the primary device. You must always call GetRealPrimaryScreen function instead of PrimaryScreen, which does not properly update the class members after a display change: https://stackoverflow.com/questions/67061729/system-windows-forms-screen-is-not-updating-after-a-display-changehttps://stackoverflow.com/questions/7901247/screen-allscreens-bug-and-posting-a-wm-displaychange-to-a-single-winform-applic |
| GetScreenFromDeviceName | Gets a Screen object that matches the specified device name or friendly display name. |
| GetScreenFromDisplayDevice | Gets a Screen object from the specified DisplayDevice. |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| IsDisplayCloned | Gets a value that determine whether the current display configuration has cloned monitors. |
| IsDisplayExtended | Gets a value that determine whether the current display configuration has extended monitors. |
| RotateDisplay | Rotates the display orientation of the specified Screen. |
| SetPrimaryScreen | Sets the specified Screen as primary. This functionality will work only with a setup of two monitors. This functionality does not support three or more monitors. |
| SetPrimaryScreenResolution(Size) | Sets the resolution of the primary screen. |
| SetPrimaryScreenResolution(Int32, Int32) | Sets the resolution of the primary screen. |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
| CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
| ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
| ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
| IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
| Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
| Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
| ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |