Click or drag to resize

ScreenInfo class

Minimum information about a screen. Thanks to Nils on StackOverflow http://stackoverflow.com/questions/1927540/how-to-get-the-size-of-the-current-screen-in-wpf.
Inheritance hierarchy
SystemObject
  NetEti.MultiScreenScreenInfo

Namespace: NetEti.MultiScreen
Assembly: NetEti.MultiScreen (in NetEti.MultiScreen.dll) Version: 1.0.0+6dae38196d8eac9695b29c123b220fb2bfe07211
Syntax
public class ScreenInfo

The ScreenInfo Type exposes the following members.

Constructors
 NameDescription of the
Public MethodScreenInfo Standard constructor.
Back to the top
Properties
 NameDescription of the
Public PropertyBounds The outer boundary of the screen.
Public PropertyIsPrimary True if the screen is the primary screen.
Public PropertyName The (device) name of the screen.
Public PropertyWorkingArea The dimensions of the screen.
Back to the top
Methods
 NameDescription of the
Public MethodStatic MemberClipToAllScreens Returns the transferred point, but changes it if necessary, its coordinates in such a way that the point, including margins, is on every case is within the maximum coordinates for all screens.
Public MethodStatic MemberGetActualScreenInfo Provides properties of the current screen.
Public MethodStatic MemberGetActualScreenInfoIndex Returns the index of the current screen in the list of all screens.
Public MethodStatic MemberGetAllScreenInfos Information for all screens plus a virtual overall screen.
Public MethodStatic MemberGetFirstScreenInfo Returns properties of the first (main) screen.
Public MethodStatic MemberGetLastActualScreenInfo Returns properties of the last current screen.
Public MethodStatic MemberGetMainWindowScreenInfo Provides the thread safe position and dimensions of the MainWindow.
Public MethodGetNextPointWithinActualScreenCoordinates(Point) Returns the transferred point, but changes it if necessary, its coordinates in such a way that the point is in any case within of the coordinates of the current screen.
Public MethodGetNextPointWithinActualScreenCoordinates(Point, Double, Double) Returns the transferred point, but changes it if necessary, its coordinates in such a way that the point, including the margin, is on every case is within the coordinates of the current screen.
Public MethodIsWithinActualScreenCoordinates(Point) True if the passed point is within the Screen coordinates of the current screen.
Public MethodIsWithinActualScreenCoordinates(Point, Double, Double) True if the passed point is at least the distance margin is located within the screen coordinates of the current screen.
Back to the top
Remarks
File: ScreenInfo.cs Author: Erik Nagel, NetEti 31/08/2015 Erik Nagel: created. 17.01.2024 Erik Nagel: ClipToAllScreens, GetMainWindowScreenInfo and GetFirstScreenInfo implemented.
See also