CoreWebView2ContextMenuTargetKind Enum

Definition

Indicates the kind of context for which the context menu was created for the Kind property. 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.

public enum CoreWebView2ContextMenuTargetKind
type CoreWebView2ContextMenuTargetKind = 
Public Enum CoreWebView2ContextMenuTargetKind
Inheritance
CoreWebView2ContextMenuTargetKind

Fields

Audio 3

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

Image 1

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

Page 0

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

SelectedText 2

Indicates that the context menu was created for selected text.

Video 4

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

Applies to