다음을 통해 공유


CoreWebView2ContextMenuTarget Class

Definition

Represents the information regarding the context menu target. Includes the context selected and the appropriate data used for the actions of a context menu.

public class CoreWebView2ContextMenuTarget
type CoreWebView2ContextMenuTarget = class
Public Class CoreWebView2ContextMenuTarget
Inheritance
CoreWebView2ContextMenuTarget

Properties

FrameUri

Gets the uri of the frame. Will match the PageUri if IsRequestedForMainFrame is true.

HasLinkText

Returns true if the context menu is requested on text element that contains an anchor tag.

HasLinkUri

Returns true if the context menu is requested on HTML containing an anchor tag.

HasSelection

Returns true if the context menu is requested on a selection.

HasSourceUri

Returns true if the context menu is requested on HTML containing a source uri.

IsEditable

Returns true if the context menu is requested on an editable component.

IsRequestedForMainFrame

Returns true if the context menu was requested on the main frame and false if invoked on another frame.

Kind

Gets the kind of context that the user selected as CoreWebView2ContextMenuTargetKind.

LinkText

Gets the text of the link (if HasLinkText is true, null otherwise).

LinkUri

Gets the uri of the link (if HasLinkUri is true, null otherwise).

PageUri

Gets the uri of the page.

SelectionText

Gets the selected text (if HasSelection is true, null otherwise).

SourceUri

Gets the active source uri of element (if HasSourceUri is true, null otherwise).

Applies to