BrightnessTray.WindowPositioning.IsNotifyIconInFlyOut C# (CSharp) Метод

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.
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).
Результат bool
        public static bool IsNotifyIconInFlyOut(NotifyIcon notifyicon, TaskBarInfo taskbarinfo)
        {
            if (Compatibility.CurrentWindowsVersion != Compatibility.WindowsVersion.Windows7Plus)
                return false; // nothing to worry about in earlier versions

            Rect? nirect = GetNotifyIconRectangle(notifyicon);

            if (nirect == null)
                return false; // if we can't find the notify icon, return false

            return IsNotifyIconInFlyOut((Rect)nirect, taskbarinfo.Position);
        }

Same methods

WindowPositioning::IsNotifyIconInFlyOut ( Rect notifyiconrect, Rect taskbarrect ) : bool