Share via


CoreWebView2ContextMenuItem Class

Definition

Represents a context menu item of a context menu displayed by WebView.

public class CoreWebView2ContextMenuItem
type CoreWebView2ContextMenuItem = class
Public Class CoreWebView2ContextMenuItem
Inheritance
CoreWebView2ContextMenuItem

Properties

Children

Gets the list of children menu items if the kind is @CoreWebView2ContextMenuItemKind$.Submenu. If the kind is not @CoreWebView2ContextMenuItemKind$.Submenu, will return null.

CommandId

Gets the Command ID for the CoreWebView2ContextMenuItem.

Icon

Gets the Icon for the CoreWebView2ContextMenuItem in PNG, Bitmap or SVG formats in the form of an IStream.

IsChecked

Gets or sets the checked property of the CoreWebView2ContextMenuItem.

IsEnabled

Gets or sets the enabled property of the CoreWebView2ContextMenuItem. Must only be used in the case of a custom context menu item.

Kind

Gets the kind of CoreWebView2ContextMenuItem as CoreWebView2ContextMenuItemKind.

Label

Gets the localized label for the CoreWebView2ContextMenuItem. Will contain an ampersand for characters to be used as keyboard accelerator.

Name

Gets the unlocalized name for the CoreWebView2ContextMenuItem.

ShortcutKeyDescription

Gets the localized keyboard shortcut for this CoreWebView2ContextMenuItem.

Events

CustomItemSelected

CustomItemSelected event is raised when the user selects this CoreWebView2ContextMenuItem.

Applies to