Compartilhar via


CoreWebView2WindowFeatures Class

Definition

The window features for a WebView popup window.

public class CoreWebView2WindowFeatures
type CoreWebView2WindowFeatures = class
Public Class CoreWebView2WindowFeatures
Inheritance
CoreWebView2WindowFeatures

Remarks

The fields match the windowFeatures passed to window.open() as specified in Window features on MDN.

Properties

HasPosition

Indicates whether the left and top values are specified.

HasSize

Indicates whether the height and width values are specified.

Height

Gets the height of the window. Ignored if HasSize() is false.

Left

Specifies the left position of the window.

        Ignored if <xref data-throw-if-not-resolved="true" uid="Microsoft.Web.WebView2.Core.CoreWebView2WindowFeatures.HasPosition"></xref> is <code data-dev-comment-type="c">false</code>.
MenuBar

Whether or not to display the menu bar.

ScrollBars

Whether or not to display scroll bars.

ShouldDisplayMenuBar

Indicates that the menu bar is displayed.

ShouldDisplayScrollBars

Indicates that the scroll bars are displayed.

ShouldDisplayStatus

Indicates that the status bar is displayed.

ShouldDisplayToolbar

Indicates that the browser toolbar is displayed.

Status

Whether or not to add a status bar.

Toolbar

Whether or not to display the browser toolbar.

Top

Specifies the top position of the window.

        Ignored if <xref data-throw-if-not-resolved="true" uid="Microsoft.Web.WebView2.Core.CoreWebView2WindowFeatures.HasPosition"></xref> is <code data-dev-comment-type="c">false</code>.
Width

Specifies the width of the window.

        Ignored if <xref data-throw-if-not-resolved="true" uid="Microsoft.Web.WebView2.Core.CoreWebView2WindowFeatures.HasSize"></xref> is <code data-dev-comment-type="c">false</code>.

Methods

HasPosition()

Has specified left and top values.

HasSize()

Has specified height and width values.

Applies to