BrightnessTray.WindowPositioning.GetNotifyIconRectangle C# (CSharp) Method

GetNotifyIconRectangle() public static method

Returns a Rect containing the location of the specified notify icon.
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 Rect? GetNotifyIconRectangle(NotifyIcon notifyicon)
        {
            if (Compatibility.CurrentWindowsVersion == Compatibility.WindowsVersion.Windows7Plus)
                return GetNotifyIconRectWindows7(notifyicon);
            else
                return GetNotifyIconRectLegacy(notifyicon);
        }