Partager via


CoreWebView2ContextMenuRequestedEventArgs Class

Definition

Event args for the ContextMenuRequested event.

public class CoreWebView2ContextMenuRequestedEventArgs : EventArgs
type CoreWebView2ContextMenuRequestedEventArgs = class
    inherit EventArgs
Public Class CoreWebView2ContextMenuRequestedEventArgs
Inherits EventArgs
Inheritance
CoreWebView2ContextMenuRequestedEventArgs

Remarks

Will contain the selection information and a collection of all of the default context menu items that the WebView would show. Allows the app to draw its own context menu or add/remove from the default context menu.

Properties

ContextMenuTarget

Gets the target information associated with the requested context menu.

Handled

Gets or sets whether the ContextMenuRequested event is handled by host after the event handler completes or after the deferral is completed if there is a taken Deferral.

Location

Gets the coordinates where the context menu request occurred in relation to the upper left corner of the WebView bounds.

MenuItems

Gets the collection of CoreWebView2ContextMenuItem objects.

SelectedCommandId

Gets or sets the selected CoreWebView2ContextMenuItem's CommandId.

Methods

GetDeferral()

Returns a Deferral object.

Applies to