CoreWebView2CompositionController.QueryNonClientRegion Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method retrieves the non-client regions on the page that correspond to a given kind CoreWebView2NonClientRegionKind.
public System.Collections.Generic.IReadOnlyList<System.Drawing.Rectangle> QueryNonClientRegion(Microsoft.Web.WebView2.Core.CoreWebView2NonClientRegionKind Kind);
member this.QueryNonClientRegion : Microsoft.Web.WebView2.Core.CoreWebView2NonClientRegionKind -> System.Collections.Generic.IReadOnlyList<System.Drawing.Rectangle>
Public Function QueryNonClientRegion (Kind As CoreWebView2NonClientRegionKind) As IReadOnlyList(Of Rectangle)
Parameters
The region kind of type CoreWebView2NonClientRegionKind.
Returns
This method returns a list of rectangles that correspond to the specified region.
Remarks
This method can be used inside the NonClientRegionChanged event handler to get the list of rects for the specific region that changed.