Enum CoreWebView2ContextMenuTargetKind
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
Fields
Audio = 3Indicates that the context menu was created for an audio element.
Image = 1Indicates that the context menu was created for an image element.
Page = 0Indicates that the context menu was created for the page without any additional content.
SelectedText = 2Indicates that the context menu was created for selected text.
Video = 4Indicates that the context menu was created for a video element.