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

SetZOrder() private method

private SetZOrder ( IntPtr handle, IntPtr after_handle, bool Top, bool Bottom ) : bool
handle System.IntPtr
after_handle System.IntPtr
Top bool
Bottom bool
return bool
		internal override bool SetZOrder(IntPtr handle, IntPtr after_handle, bool Top, bool Bottom) {
			Hwnd hwnd = Hwnd.ObjectFromHandle (handle);
			
			if (Top) {
				HIViewSetZOrder (hwnd.whole_window, 2, IntPtr.Zero);
				return true;
			} else if (!Bottom) {
				Hwnd after_hwnd = Hwnd.ObjectFromHandle (after_handle);
				HIViewSetZOrder (hwnd.whole_window, 2, (after_handle == IntPtr.Zero ? IntPtr.Zero : after_hwnd.whole_window));
			} else {
				HIViewSetZOrder (hwnd.whole_window, 1, IntPtr.Zero);
				return true;
			}
			return false;
		}
XplatUICarbon