public record class DisplayInfoOne display, as the platform describes it.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (9)
public int IndexIts position in Displays, stable until a DisplaysChanged.
public string NameA human-readable name, for a settings screen.
public Rectangle BoundsIts position and size in the desktop's coordinate space, in logical points.
public Rectangle WorkAreaThe part of not covered by a taskbar, dock or menu bar — where a window should be placed.
public float DpiScalePhysical pixels per logical point.
public DisplayMode CurrentModeThe mode it is running now.
public IReadOnlyList<DisplayMode> ModesEvery mode it can be switched to, or empty where the platform does not allow mode switching.
public bool IsPrimaryWhether this is the display the OS considers the main one.
public bool SupportsHdrWhether any of this display's modes carries an HDR signal.
Methods (2)
public DisplayInfo(int Index, string Name, Rectangle Bounds, Rectangle WorkArea, float DpiScale, DisplayMode CurrentMode, IReadOnlyList<DisplayMode> Modes, bool IsPrimary)One display, as the platform describes it.
public override string ToString()Returns a string that represents the current object.
Used by (5)
- DesktopDisplaysVixen.Platform.Desktop
- HeadlessDisplaysVixen.Platform.Headless
- IDisplayInfoVixen.Platform
- PlatformWindowHostVixen.Platform.Ui
- WindowReachabilityTestsVixen.Platform.Ui.Tests