COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_PAGE

Indicates the kind of context for which the context menu was created for the ICoreWebView2ContextMenuTarget::get_Kind method. This enum will always represent the active element that caused the context menu request. If there is a selection with multiple images, audio and text, for example, the element that the end user right clicks on within this selection will be the option represented by this enum.

Values

ValueMeaning
COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_PAGE

Indicates that the context menu was created for the page without any additional content.

COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_IMAGE

Indicates that the context menu was created for an image element.

COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_SELECTED_TEXT

Indicates that the context menu was created for selected text.

COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_AUDIO

Indicates that the context menu was created for an audio element.

COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND_VIDEO

Indicates that the context menu was created for a video element.

Meta