Method | Description | |
---|---|---|
GetCursorPosition ( ) : Point |
Returns the cursor's current position as a System.Windows.Point.
|
|
GetNotifyAreaButtonRectangle ( ) : Rect? |
Retrieves the rectangle of the 'Show Hidden Icons' button, or null if it can't be found.
|
|
GetNotifyIconRectLegacy ( System.Windows.Forms.NotifyIcon notifyicon ) : Rect? |
Returns a rectangle representing the location of the specified NotifyIcon. (Windows Vista and earlier.)
|
|
GetNotifyIconRectWindows7 ( System.Windows.Forms.NotifyIcon notifyicon ) : Rect? |
Returns a rectangle representing the location of the specified NotifyIcon. (Windows 7+.)
|
|
GetNotifyIconRectangle ( System.Windows.Forms.NotifyIcon notifyicon ) : Rect? |
Returns a Rect containing the location of the specified notify icon.
|
|
GetTaskBarInfo ( ) : TaskBarInfo |
Retrieves taskbar position and alignment.
|
|
GetWindowClientAreaSize ( |
Returns a Rect containing the bounds of the specified window's client area (i.e. area excluding border).
|
|
GetWindowPosition ( System.Windows.Forms.NotifyIcon notifyicon, double windowwidth, double windowheight, double dpi ) : Point |
Returns the optimum window position in relation to the specified notify icon.
|
|
GetWindowSize ( |
Returns a Rect containing the bounds of the specified window's area (i.e. area excluding border).
|
|
GetWorkingArea ( |
Returns the working area of the monitor that intersects most with the specified rectangle. If no monitor can be found, the closest monitor to the rectangle is returned.
|
|
IsCursorOverNotifyIcon ( System.Windows.Forms.NotifyIcon notifyicon ) : bool |
Returns true if the cursor is currently over the specified notify icon.
|
|
IsNotifyIconInFlyOut ( System.Windows.Forms.NotifyIcon notifyicon, TaskBarInfo taskbarinfo ) : bool |
Determines whether the specified System.Windows.Forms.NotifyIcon is contained within the Windows 7 notification area fly-out. Note that this function will return false if the fly-out is closed.
|
|
IsNotifyIconInFlyOut ( |
Determines whether the specified System.Windows.Forms.NotifyIcon is contained within the Windows 7 notification area fly-out. Note that this function will return false if the fly-out is closed.
|
|
IsPointInNotifyIcon ( Point point, System.Windows.Forms.NotifyIcon notifyicon ) : bool |
Checks whether a point is within the bounds of the specified notify icon.
|
public static GetNotifyAreaButtonRectangle ( ) : Rect? | ||
return | Rect? |
public static GetNotifyIconRectLegacy ( System.Windows.Forms.NotifyIcon notifyicon ) : Rect? | ||
notifyicon | System.Windows.Forms.NotifyIcon | The NotifyIcon whose location should be returned. |
return | Rect? |
public static GetNotifyIconRectWindows7 ( System.Windows.Forms.NotifyIcon notifyicon ) : Rect? | ||
notifyicon | System.Windows.Forms.NotifyIcon | The NotifyIcon whose location should be returned. |
return | Rect? |
public static GetNotifyIconRectangle ( System.Windows.Forms.NotifyIcon notifyicon ) : Rect? | ||
notifyicon | System.Windows.Forms.NotifyIcon | The NotifyIcon whose location should be retrieved. |
return | Rect? |
public static GetTaskBarInfo ( ) : TaskBarInfo | ||
return | TaskBarInfo |
public static GetWindowClientAreaSize ( |
||
hWnd | Handle of the window. | |
return |
public static GetWindowPosition ( System.Windows.Forms.NotifyIcon notifyicon, double windowwidth, double windowheight, double dpi ) : Point | ||
notifyicon | System.Windows.Forms.NotifyIcon | The notify icon that the window should be aligned to. |
windowwidth | double | The width of the window. |
windowheight | double | The height of the window. |
dpi | double | The system's DPI (in relative units: 1.0 = 96 DPI, 1.25 = 120 DPI, etc.). |
return | Point |
public static GetWindowSize ( |
||
hWnd | Handle of the window. | |
return |
public static GetWorkingArea ( |
||
rectangle | The rectangle that is located on the monitor whose working area should be returned. | |
return |
public static IsCursorOverNotifyIcon ( System.Windows.Forms.NotifyIcon notifyicon ) : bool | ||
notifyicon | System.Windows.Forms.NotifyIcon | The notify icon to test. |
return | bool |
public static IsNotifyIconInFlyOut ( System.Windows.Forms.NotifyIcon notifyicon, TaskBarInfo taskbarinfo ) : bool | ||
notifyicon | System.Windows.Forms.NotifyIcon | Notify icon to test. |
taskbarinfo | TaskBarInfo | Taskbar information structure containing taskbar alignment (bottom/top/left/right). |
return | bool |
public static IsNotifyIconInFlyOut ( |
||
notifyiconrect | Rectangle of notify icon bounds. | |
taskbarrect | Rectangle of taskbar bounds. | |
return | bool |
public static IsPointInNotifyIcon ( Point point, System.Windows.Forms.NotifyIcon notifyicon ) : bool | ||
point | Point | Point to check. |
notifyicon | System.Windows.Forms.NotifyIcon | Notify icon to check. |
return | bool |