Class Display
Determines the sizes and locations of displays connected to the system.
public class Display : HandledObject<IDisplayHandler>, IBaseObject, IDisposableObject, IDisposable, INotifyPropertyChanged
- Inheritance
-
Display
- Implements
Constructors
- Display()
Initializes a new instance of the Display class. This constructor creates primary display.
- Display(Control)
Initializes a new instance of the Display class.
- Display(int)
Initializes a new instance of the Display class.
Properties
- AllDPI
Gets array of DPI values for all displays on the system.
- AllScaleFactors
Gets array of scale factors for all displays on the system.
- AllScreens
Gets an array of all of the displays on the system.
- BaseDPIValue
Gets base display resolution for the current platform in pixels per inch.
- Bounds
Returns the bounding rectangle of the display in pixels.
- BoundsDip
Returns the bounding rectangle of the display in dips.
- ClientArea
Gets the client area of the display.
- ClientAreaDip
Gets the client area of the display in the device-independent units.
- Count
Gets the number of connected displays.
- DPI
Gets display resolution in pixels per inch.
- DeviceName
Gets the display's name.
- Factory
Gets or sets IDisplayFactoryHandler object used to perform display related operations.
- Geometry
Returns the bounding rectangle of the display in pixels.
- GeometryDip
Returns the bounding rectangle of the display in the device-independent units.
- HasDifferentDPI
Gets whether system has displays with different DPI values.
- IsPrimary
Gets
true
if the display is the primary display.
- IsVertical
Gets whether display height is bigger than width.
- MaxDPI
Maximal DPI value for all displays.
- MaxScaleFactor
Maximal scale factor value for all displays.
- MinDPI
Minimal DPI value for all displays.
- MinScaleFactor
Minimal scale factor value for all displays.
- Name
Gets the display's name.
- Primary
Gets primary display.
- ScaleFactor
Gets scaling factor used by this display.
Methods
- CreateHandler()
Creates handler.
- GetDisplay(int)
Gets display with the specified index.
- GetFromControl(Control)
Returns the index of the display on which the given control lies.
- GetFromPoint(PointI)
Returns the index of the display on which the given point lies, or -1 if the point is not on any connected display.
- Log()
Logs display related information.
- PixelFromDip(PointD)
Converts device-independent units to pixels.
- PixelFromDip(RectD)
Converts device-independent units to pixels.
- PixelFromDip(SizeD)
Converts device-independent units to pixels.
- PixelFromDip(double)
Converts device-independent units to pixels.
- PixelToDip(PointI)
Converts PointI to device-independent units.
- PixelToDip(RectI)
Converts RectI to device-independent units.
- PixelToDip(SizeI)
Converts SizeI to device-independent units.
- PixelToDip(int)
Converts pixels to device-independent units.
- Reset()
Resets all internal structures.