Skip to content

WindowHandle

Constructor

  • Type

    public class WindowHandle {
      public WindowHandle(IntPtr hWnd);
    }
    

hWnd

  • Type

    public class WindowHandle {
      public readonly IntPtr hWnd;
    }
    
    • Details

    Returns the hWnd of the window.

Title

isActive

  • Type

    public class WindowHandle {
      public bool isActive { get; }
    }
    
  • Details

    Returns true if the window is currently the active, foreground window.

  • See also:

GetWindowRectangle()

SetWindowPos()

ShowProperties()

  • Type

    public class WindowHandle {
      public void ShowProperties();
    }
    
  • Details

    Shows properties of the window in the message box.

Resize()

  • Type

    public class WindowHandle {
      public bool Resize(int widthOffset, int heightOffset);
    }
    
  • Details

    Resizes the window relative to its current size.

ResizeTo()

  • Type

    public class WindowHandle {
      public bool ResizeTo(int newWidth, int newHeight);
    }
    
  • Details

    Resizes the window to a new width and height.

Move()

  • Type

    public class WindowHandle {
      public bool Move(int xOffset, int yOffset);
    }
    
  • Details

    Moves the window relative to its current position.

MoveTo()

  • Type

    public class WindowHandle {
      public bool MoveTo(int newX, int newY);
    }
    
  • Details

    Moves the window to new coordinates on the screen.