public bool IsForeground() { return(WinApi.IsForegroundWindow(handle)); }
public RectangleF GetWindowRectangle() { Rectangle rectangle = WinApi.GetClientRectangle(handle); return(new RectangleF(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height)); }