Skip to content

Latest commit

 

History

History
74 lines (51 loc) · 2.57 KB

icorewebview2contextmenuitemcollection.md

File metadata and controls

74 lines (51 loc) · 2.57 KB
description title ms.date keywords topic_type api_name api_type api_location
Represents a collection of `ContextMenuItem` objects.
WebView2 Win32 C++ ICoreWebView2ContextMenuItemCollection
04/22/2024
IWebView2, IWebView2WebView, webview2, webview, win32 apps, win32, edge, ICoreWebView2, ICoreWebView2Controller, browser control, edge html, ICoreWebView2ContextMenuItemCollection
APIRef
ICoreWebView2ContextMenuItemCollection
ICoreWebView2ContextMenuItemCollection.get_Count
ICoreWebView2ContextMenuItemCollection.GetValueAtIndex
ICoreWebView2ContextMenuItemCollection.InsertValueAtIndex
ICoreWebView2ContextMenuItemCollection.RemoveValueAtIndex
COM
embeddedbrowserwebview.dll

interface ICoreWebView2ContextMenuItemCollection

[!INCLUDE deprecation-note]

interface ICoreWebView2ContextMenuItemCollection
  : public IUnknown

Represents a collection of ContextMenuItem objects.

Summary

Members Descriptions
get_Count Gets the number of ContextMenuItem objects contained in the ContextMenuItemCollection.
GetValueAtIndex Gets the ContextMenuItem at the specified index.
InsertValueAtIndex Inserts the ContextMenuItem at the specified index.
RemoveValueAtIndex Removes the ContextMenuItem at the specified index.

Used to get, remove and add ContextMenuItem objects at the specified index.

Applies to

Product Introduced
WebView2 Win32 1.0.1185.39
WebView2 Win32 Prerelease 1.0.1189

Members

get_Count

Gets the number of ContextMenuItem objects contained in the ContextMenuItemCollection.

public HRESULT get_Count(UINT32 * value)

GetValueAtIndex

Gets the ContextMenuItem at the specified index.

public HRESULT GetValueAtIndex(UINT32 index, ICoreWebView2ContextMenuItem ** value)

InsertValueAtIndex

Inserts the ContextMenuItem at the specified index.

public HRESULT InsertValueAtIndex(UINT32 index, ICoreWebView2ContextMenuItem * value)

RemoveValueAtIndex

Removes the ContextMenuItem at the specified index.

public HRESULT RemoveValueAtIndex(UINT32 index)