Freigeben über


interface ICoreWebView2ContextMenuItemCollection

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)