Table of Contents

Class ContextMenuItem

Namespace
WebKitWebProcessExtension
Assembly
WebKitWebProcessExtension-6.0.dll
public sealed class ContextMenuItem : InitiallyUnowned, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
ContextMenuItem
Implements
Inherited Members

Constructors

ContextMenuItem(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public ContextMenuItem(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

ContextMenuItem(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ContextMenuItem(CreationData data)

Parameters

data CreationData

ContextMenuItem(ContextMenuItemHandle)

protected ContextMenuItem(ContextMenuItemHandle handle)

Parameters

handle ContextMenuItemHandle

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

NewFromPointer(nint, bool)

Creates a new managed ContextMenuItem instance for a given pointer.

public static ContextMenuItem NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

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

NewWithProperties(ConstructArgument[])

Creates a new ContextMenuItem and sets the properties specified by the construct arguments.

public static ContextMenuItem NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

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