Method elm.GetRect(+ 1 overload)
Overload
Gets location of this UI element in screen.
public bool GetRect(out RECT r, bool raw = false)
Parameters
r (RECT)
Rectangle in screen coordinates. |
raw (bool)
Don't DPI-scale. When the element is in a DPI-scaled/virtualized window (see Dpi.IsWindowVirtualized), the raw rectangle may not match the visible rectangle. This parameter is ignored on Windows 7 and 8.0 or if this element was retrieved not in-process. |
Returns
Remarks
Most but not all UI elements support this property.
Overload(top)
Gets location of this UI element in the client area of window w.
public bool GetRect(out RECT r, wnd w, bool intersect = false)
Parameters
r (RECT)
Receives rectangle in w client area coordinates. |
w (wnd)
Window or control. |
intersect (bool)
Intersect the rectangle with the w client area, possibly making it smaller or empty. |
Returns
Remarks
Most but not all UI elements support this property. Uses GetRect(out RECT, bool) and wnd.MapScreenToClient.