Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
interface ICoreWebView2ContextMenuItemCollection
  : public IUnknown
Represents a collection of ContextMenuItem objects.
Summary
| Members | Descriptions | 
|---|---|
| get_Count | Gets the number of ContextMenuItemobjects contained in theContextMenuItemCollection. | 
| GetValueAtIndex | Gets the ContextMenuItemat the specified index. | 
| InsertValueAtIndex | Inserts the ContextMenuItemat the specified index. | 
| RemoveValueAtIndex | Removes the ContextMenuItemat 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)