ICoreWebView2Controller.get_Bounds

The WebView bounds. Bounds are relative to the parent HWND. The app has two ways to position a WebView.

* Create a child HWND that is the WebView parent HWND. Position the window where the WebView should be. Use (0, 0) for the top-left corner (the offset) of the Bounds of the WebView. * Use the top-most window of the app as the WebView parent HWND. For example, to position WebView correctly in the app, set the top-left corner of the Bound of the WebView.

The values of Bounds are limited by the coordinate space of the host.

interface ICoreWebView2Controller
@" propget"
HRESULT
get_Bounds
(
RECT* bounds
)

Meta