Table of Contents

Class MenuItem

Namespace
Gio
Assembly
Gio-2.0.dll
public class MenuItem : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
MenuItem
Implements
Inherited Members

Constructors

MenuItem(bool, params ConstructArgument[])

protected MenuItem(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

MenuItem(IntPtr, bool)

protected MenuItem(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Methods

GetAttributeValue(string, VariantType?)

[Version("2.34")]
public Variant? GetAttributeValue(string attribute, VariantType? expectedType)

Parameters

attribute string
expectedType VariantType

Returns

Variant

GetGType()

public static Type GetGType()

Returns

Type
[Version("2.34")]
public MenuModel? GetLink(string link)

Parameters

link string

Returns

MenuModel

New(string?, string?)

[Version("2.32")]
public static MenuItem New(string? label, string? detailedAction)

Parameters

label string
detailedAction string

Returns

MenuItem

NewFromModel(MenuModel, int)

[Version("2.34")]
public static MenuItem NewFromModel(MenuModel model, int itemIndex)

Parameters

model MenuModel
itemIndex int

Returns

MenuItem

NewSection(string?, MenuModel)

[Version("2.32")]
public static MenuItem NewSection(string? label, MenuModel section)

Parameters

label string
section MenuModel

Returns

MenuItem

NewSubmenu(string?, MenuModel)

[Version("2.32")]
public static MenuItem NewSubmenu(string? label, MenuModel submenu)

Parameters

label string
submenu MenuModel

Returns

MenuItem

SetActionAndTargetValue(string?, Variant?)

[Version("2.32")]
public void SetActionAndTargetValue(string? action, Variant? targetValue)

Parameters

action string
targetValue Variant

SetAttributeValue(string, Variant?)

[Version("2.32")]
public void SetAttributeValue(string attribute, Variant? value)

Parameters

attribute string
value Variant

SetDetailedAction(string)

[Version("2.32")]
public void SetDetailedAction(string detailedAction)

Parameters

detailedAction string

SetIcon(Icon)

[Version("2.38")]
public void SetIcon(Icon icon)

Parameters

icon Icon

SetLabel(string?)

[Version("2.32")]
public void SetLabel(string? label)

Parameters

label string
[Version("2.32")]
public void SetLink(string link, MenuModel? model)

Parameters

link string
model MenuModel

SetSection(MenuModel?)

[Version("2.32")]
public void SetSection(MenuModel? section)

Parameters

section MenuModel

SetSubmenu(MenuModel?)

[Version("2.32")]
public void SetSubmenu(MenuModel? submenu)

Parameters

submenu MenuModel