CoreWebView2CompositionController.QueryNonClientRegion Method

Definition

This method retrieves the non-client regions on the page which corresponds 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

Kind
CoreWebView2NonClientRegionKind

The kind of non-client region.

Returns

This method returns a vector of rectangles.

Remarks

This method can be used inside the NonClientRegionChanged event handler to get the list of rects for the specific region that changed.

Applies to