The OpenD Programming Language

ICoreWebView2ContextMenuRequestedEventArgs.put_SelectedCommandId

Sets the selected context menu item's command ID. When this is set, WebView will execute the selected command. This value should always be obtained via the selected ContextMenuItem's CommandId property. The default value is -1 which means that no selection occurred. The app can also report the selected command ID for a custom context menu item, which will cause the CustomItemSelected event to be fired for the custom item, however while command IDs for each custom context menu item is unique during a ContextMenuRequested event, CoreWebView2 may reassign command ID values of deleted custom ContextMenuItems to new objects and the command ID assigned to the same custom item can be different between each app runtime.

interface ICoreWebView2ContextMenuRequestedEventArgs
@" propput"
HRESULT
put_SelectedCommandId
(
in INT32 value
)

Meta