System.Windows.Forms.XplatUICarbon.GetClippingRectangles C# (CSharp) Method

GetClippingRectangles() static private method

static private GetClippingRectangles ( IntPtr handle ) : System.Drawing.Rectangle[]
handle System.IntPtr
return System.Drawing.Rectangle[]
		internal static Rectangle [] GetClippingRectangles (IntPtr handle) {
			Hwnd hwnd = Hwnd.ObjectFromHandle (handle);

			if (hwnd == null)
				return null;
 			if (hwnd.Handle != handle)
				return new Rectangle [] {hwnd.ClientRect};

			return (Rectangle []) hwnd.GetClippingRectangles ().ToArray (typeof (Rectangle));
		}
XplatUICarbon