次の方法で共有


CoreWebView2ContextMenuTarget Class

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

Summary

Members Description
FrameUri Gets the uri of the frame. Will match the CoreWebView2ContextMenuTarget.PageUri if CoreWebView2ContextMenuTarget.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 CoreWebView2ContextMenuTarget.HasLinkText is true, null otherwise).
LinkUri Gets the uri of the link (if CoreWebView2ContextMenuTarget.HasLinkUri is true, null otherwise).
PageUri Gets the uri of the page.
SelectionText Gets the selected text (if CoreWebView2ContextMenuTarget.HasSelection is true, null otherwise).
SourceUri Gets the active source uri of element (if CoreWebView2ContextMenuTarget.HasSourceUri is true, null otherwise).

Properties

FrameUri

readonly string FrameUri

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

HasLinkText

readonly bool HasLinkText

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

HasLinkUri

readonly bool HasLinkUri

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

HasSelection

readonly bool HasSelection

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

HasSourceUri

readonly bool HasSourceUri

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

IsEditable

readonly bool IsEditable

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

IsRequestedForMainFrame

readonly bool IsRequestedForMainFrame

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

Kind

readonly CoreWebView2ContextMenuTargetKind Kind

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

LinkText

readonly string LinkText

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

LinkUri

readonly string LinkUri

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

PageUri

readonly string PageUri

Gets the uri of the page.

SelectionText

readonly string SelectionText

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

SourceUri

readonly string SourceUri

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

Referenced by