Table of Contents

Class ContextMenuItem

Namespace
WebKit
Assembly
WebKit-6.0.dll
public sealed class ContextMenuItem : InitiallyUnowned, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
ContextMenuItem
Implements
Inherited Members

Constructors

ContextMenuItem()

public ContextMenuItem()

ContextMenuItem(params ConstructArgument[])

protected ContextMenuItem(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

ContextMenuItem(IntPtr, bool)

protected ContextMenuItem(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Methods

GetGType()

public static Type GetGType()

Returns

Type

GetGaction()

[Version("2.18")]
public Action GetGaction()

Returns

Action

GetStockAction()

public ContextMenuAction GetStockAction()

Returns

ContextMenuAction

GetSubmenu()

public ContextMenu GetSubmenu()

Returns

ContextMenu

IsSeparator()

public bool IsSeparator()

Returns

bool

NewFromGaction(Action, string, Variant?)

[Version("2.18")]
public static ContextMenuItem NewFromGaction(Action action, string label, Variant? target)

Parameters

action Action
label string
target Variant

Returns

ContextMenuItem

NewFromStockAction(ContextMenuAction)

public static ContextMenuItem NewFromStockAction(ContextMenuAction action)

Parameters

action ContextMenuAction

Returns

ContextMenuItem

NewFromStockActionWithLabel(ContextMenuAction, string)

public static ContextMenuItem NewFromStockActionWithLabel(ContextMenuAction action, string label)

Parameters

action ContextMenuAction
label string

Returns

ContextMenuItem

NewSeparator()

public static ContextMenuItem NewSeparator()

Returns

ContextMenuItem

NewWithSubmenu(string, ContextMenu)

public static ContextMenuItem NewWithSubmenu(string label, ContextMenu submenu)

Parameters

label string
submenu ContextMenu

Returns

ContextMenuItem

SetSubmenu(ContextMenu?)

public void SetSubmenu(ContextMenu? submenu)

Parameters

submenu ContextMenu