interface ICoreWebView2ExperimentalContextMenuItemCollection
Note
This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.
interface ICoreWebView2ExperimentalContextMenuItemCollection
: 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 | N/A |
WebView2 Win32 Prerelease | 1.0.1010 |
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, ICoreWebView2ExperimentalContextMenuItem ** value)
InsertValueAtIndex
Inserts the ContextMenuItem
at the specified index.
public HRESULT InsertValueAtIndex(UINT32 index, ICoreWebView2ExperimentalContextMenuItem * value)
RemoveValueAtIndex
Removes the ContextMenuItem
at the specified index.
public HRESULT RemoveValueAtIndex(UINT32 index)