示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static Point GetVirtualScreenTopLeftPoint()
        {
            int x = SystemMetrics.GetSystemMetric(SystemMetric.VirtualScreenX);
            int y = SystemMetrics.GetSystemMetric(SystemMetric.VirtualScreenY);

            Point point = new Point(x, y);

            return(point);
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static Size GetVirtualScreenSize()
        {
            int width  = SystemMetrics.GetSystemMetric(SystemMetric.VirtualScreenWidth);
            int height = SystemMetrics.GetSystemMetric(SystemMetric.VirtualScreenHeight);

            Size size = new Size(width, height);

            return(size);
        }
示例#3
0
 /// <summary>
 /// Returns the number of display monitors available
 /// </summary>
 /// <returns></returns>
 public static int GetDisplayCount()
 {
     return(SystemMetrics.GetSystemMetric(SystemMetric.Monitors));
 }