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 |
|
|
|
|
[!INCLUDE deprecation-note]
interface ICoreWebView2ContextMenuItemCollection
: public IUnknown
Represents a collection of ContextMenuItem
objects.
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.
Product | Introduced |
---|---|
WebView2 Win32 | 1.0.1185.39 |
WebView2 Win32 Prerelease | 1.0.1189 |
Gets the number of ContextMenuItem
objects contained in the ContextMenuItemCollection
.
public HRESULT get_Count(UINT32 * value)
Gets the ContextMenuItem
at the specified index.
public HRESULT GetValueAtIndex(UINT32 index, ICoreWebView2ContextMenuItem ** value)
Inserts the ContextMenuItem
at the specified index.
public HRESULT InsertValueAtIndex(UINT32 index, ICoreWebView2ContextMenuItem * value)
Removes the ContextMenuItem
at the specified index.
public HRESULT RemoveValueAtIndex(UINT32 index)